Skip to content

Commit

Permalink
Merge pull request #8 from goraxe/master
Browse files Browse the repository at this point in the history
remove url from Rawnzb struct Source
  • Loading branch information
Michael Robinson authored Apr 7, 2018
2 parents 7e3b308 + 121b12b commit df8855d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions newznab/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ type RawNZB struct {

Source struct {
URL string `xml:"url,attr"`
Value string `xml:"url,chardata"`
Value string `xml:",chardata"`
} `xml:"source,omitempty"`

Date Time `xml:"pubDate,omitempty"`
Expand All @@ -148,7 +148,7 @@ type Time struct {

func (t *Time) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
e.EncodeToken(start)
e.EncodeToken(xml.CharData([]byte(t.UTC().Format(time.RFC822))))
e.EncodeToken(xml.CharData([]byte(t.UTC().Format(time.RFC1123Z))))
e.EncodeToken(xml.EndElement{start.Name})
return nil
}
Expand Down

0 comments on commit df8855d

Please sign in to comment.