mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
Size is now parsed for each item in the feed.
QualityType added to database to allow saving of size limits. Fluent now uses longs for multiplication, to ensure it doesn't overflow.
This commit is contained in:
parent
f8ae95d36f
commit
e4f01ae0d4
21 changed files with 524 additions and 6 deletions
82
NzbDrone.Core.Test/Files/RSS/SizeParsing/newzbin.xml
Normal file
82
NzbDrone.Core.Test/Files/RSS/SizeParsing/newzbin.xml
Normal file
|
@ -0,0 +1,82 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<rss version="2.0" xml:lang="en-GB"
|
||||
xmlns:report="http://www.newzbin.com/DTD/2007/feeds/report/">
|
||||
<channel>
|
||||
<title>www.newzbin.com (reports)</title>
|
||||
<link>http://www.newzbin.com/browse/category/p/tv/</link>
|
||||
<description>Newzbin Reports Feed</description>
|
||||
<pubDate>Mon, 25 Apr 2011 16:08:24 GMT</pubDate>
|
||||
<ttl>42</ttl>
|
||||
<generator>www.newzbin.com - Usenet Search</generator>
|
||||
<copyright>Copyright (c) 2002 - 2007 Newzbin Limited. All Rights Reserved.</copyright>
|
||||
<image>
|
||||
<url>http://www.newzbin.com/m/i/logo/newzbinv3.png</url>
|
||||
<link>http://www.newzbin.com/browse/category/p/tv/</link>
|
||||
<title>www.newzbin.com</title>
|
||||
<description>Visit Newzbin.com - The Ultimate In Usenet Indexing</description>
|
||||
</image>
|
||||
<item>
|
||||
<title>Rookie Blue - 1x10 - Big Nickel</title>
|
||||
<guid isPermaLink="true">http://www.newzbin.com/browse/post/6076287/</guid>
|
||||
<link>http://www.newzbin.com/browse/post/6076287/</link>
|
||||
<comments>http://www.newzbin.com/browse/post/6076287/#CommentsPH</comments>
|
||||
<description>
|
||||
<![CDATA[
|
||||
<ul>
|
||||
<li>
|
||||
ID: <a href="http://www.newzbin.com/browse/post/6076287">6076287</a>
|
||||
(<a
|
||||
href="http://www.newzbin.com/account/bookmarks/add/?ps_id=6076287">Bookmark</a>)
|
||||
(<a href="http://www.newzbin.com/browse/post/6076287/nzb/">NZB</a>)
|
||||
(<a href="http://www.newzbin.com/nfo/view/txt/373966350/">NFO</a>)
|
||||
(<a href="http://www.tvrage.com/Rookie_Blue/episodes/1064943067/1x10/">More Info</a>)
|
||||
(Size: 1,235.6MB)
|
||||
</li>
|
||||
<li>
|
||||
Attributes:
|
||||
Category - TV
|
||||
| Video Source - TV Cap, HDTV | Video Format - x264, 720p | Video Genre - Action/Adv, Crime, Drama, Family | Language - English, German
|
||||
</li>
|
||||
<li>Groups: alt.binaries.illuminaten</li>
|
||||
<li>Poster: AuToMaTiC <AuTo@Illuminatenboard.org></li>
|
||||
<li>PostDate: Sunday 06 Mar 2011, 01:05PM PDT</li>
|
||||
</ul> ]]>
|
||||
</description>
|
||||
<report:id>6076287</report:id>
|
||||
<report:category>TV</report:category>
|
||||
<report:attributes>
|
||||
<report:attribute type="Source">TV Cap</report:attribute>
|
||||
<report:attribute type="Source">HDTV</report:attribute>
|
||||
<report:attribute type="Video Fmt">x264</report:attribute>
|
||||
<report:attribute type="Video Fmt">720p</report:attribute>
|
||||
<report:attribute type="Video Genre">Action/Adv</report:attribute>
|
||||
<report:attribute type="Video Genre">Crime</report:attribute>
|
||||
<report:attribute type="Video Genre">Drama</report:attribute>
|
||||
<report:attribute type="Video Genre">Family</report:attribute>
|
||||
<report:attribute type="Language">English</report:attribute>
|
||||
<report:attribute type="Language">German</report:attribute>
|
||||
</report:attributes>
|
||||
<report:groups>
|
||||
<report:group>alt.binaries.illuminaten</report:group>
|
||||
</report:groups>
|
||||
<report:progress value="1">Report is complete</report:progress>
|
||||
<report:moreinfo>http://www.tvrage.com/Rookie_Blue/episodes/1064943067/1x10/</report:moreinfo>
|
||||
<report:nfo>
|
||||
<report:fileid>373966350</report:fileid>
|
||||
<report:filename>tvp-rookieblue-s01e10-720p.nfo</report:filename>
|
||||
<report:link>http://www.newzbin.com/nfo/view/txt/373966350/</report:link>
|
||||
</report:nfo>
|
||||
<report:nzb>http://www.newzbin.com/browse/post/6076287/nzb/</report:nzb>
|
||||
<report:poster>AuToMaTiC <AuTo@Illuminatenboard.org></report:poster>
|
||||
<report:size type="bytes">1295652290</report:size>
|
||||
<report:postdate>Sun, 06 Mar 2011 21:05:58 GMT</report:postdate>
|
||||
<report:stats>
|
||||
<report:views>2</report:views>
|
||||
<report:comments>0</report:comments>
|
||||
</report:stats>
|
||||
<enclosure url="http://www.newzbin.com/browse/post/6076287/nzb/"
|
||||
length="1295652290" type="application/x-nzb" />
|
||||
<pubDate>Mon, 25 Apr 2011 11:55:04 GMT</pubDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
23
NzbDrone.Core.Test/Files/RSS/SizeParsing/nzbmatrix.xml
Normal file
23
NzbDrone.Core.Test/Files/RSS/SizeParsing/nzbmatrix.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<generator>NZBMatrix.com RSS 2.0</generator>
|
||||
<language>en</language>
|
||||
<title>NZBMatrix</title>
|
||||
<description>NZBMatrix.com RSS Feed - Usenet</description>
|
||||
<link>http://nzbmatrix.com</link>
|
||||
|
||||
<copyright>Copyright 2011 NZBMatrix</copyright>
|
||||
<pubDate>Wed, 14 Sep 2011 02:18:04 +0200</pubDate>
|
||||
<item>
|
||||
<title>House S04E11 720p HDTV x264 BAWLS</title>
|
||||
<guid>http://nzbmatrix.com/nzb-details.php?id=914522&hit=1</guid>
|
||||
<link>http://nzbmatrix.com/nzb-details.php?id=914522&hit=1</link>
|
||||
<description><![CDATA[<b>Name:</b> House S04E11 FRENCH 720p HDTV x264 BAWLS<br /><b>Category:</b> TV: HD<br /><b>Size:</b> 1.24 GB<br /><b>Added:</b> 2011-04-25 15:06:58<br /><b>Group:</b> alt.binaries.multimedia <BR /><b>NFO:</b> <a href="http://nzbmatrix.com/viewnfo.php?id=914522">View NFO</a> ]]></description>
|
||||
<category>TV: HD</category>
|
||||
<cattext>tv.hd</cattext>
|
||||
<categoryid>41</categoryid>
|
||||
<enclosure url="http://nzbmatrix.com/nzb-details.php?id=914522&hit=1" length="1335801937" type="application/x-nzb" />
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
27
NzbDrone.Core.Test/Files/RSS/SizeParsing/nzbsorg.xml
Normal file
27
NzbDrone.Core.Test/Files/RSS/SizeParsing/nzbsorg.xml
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1" ?>
|
||||
<rss version="2.0" xmlns:report="http://www.newzbin.com/DTD/2007/feeds/report/">
|
||||
<channel>
|
||||
<title>All Categories - NZBs(dot)ORG RSS Feed</title>
|
||||
<link>http://nzbs.org/index.php?&catid=</link>
|
||||
<description>All Categories feed for NZBs(dot)ORG</description>
|
||||
<language>en-us</language>
|
||||
<item>
|
||||
<title>Shameless.S08E17.720p.HDTV.x264-BiA</title>
|
||||
|
||||
<pubDate>Wed, 14 Sep 2011 02:14:09 +0000</pubDate>
|
||||
<category>TV-x264</category>
|
||||
<link>http://nzbs.org/index.php?action=view&nzbid=750588</link>
|
||||
<description><![CDATA[<b>Category:</b> <a href="http://nzbs.org/index.php?action=browse&catid=14">TV-x264</a><br /><b>Size:</b> <a href="http://nzbs.org/index.php?action=view&nzbid=750588&filelist=1">1.67 GB</a><br /><b>Files:</b> 44 <small>(8 pars)</small><br /><b>Group:</b> a.b.teevee<br /><b>.NFO:</b> <a href="http://nzbs.org/index.php?action=view&nzbid=750588&nfo=1#nfo">View NFO</a><br /><b>Ext. Link:</b> <a href="http://www.tvrage.com/shows/id-5162">http://www.tvrage.com/shows/id-5162</a><br /><b>Posted:</b> Wed September 14th 00:00:15 UTC<br /><b><a href="http://nzbs.org/cart.php?action=rsstomynzbs&nzbid=750588&i=9695&h=92653d4053a322e123dbbb3da887c5c5">Add to My NZBs</a></b><br /><b><a href="http://nzbs.org/index.php?action=getnzb&nzbid=750588&i=9695&h=92653d4053a322e123dbbb3da887c5c5">Download NZB</a></b><br />]]></description>
|
||||
<guid>http://nzbs.org/index.php?action=view&nzbid=750588</guid>
|
||||
<report:id>750588</report:id>
|
||||
|
||||
<report:category parentID="1" id="14">TV-x264</report:category>
|
||||
<report:nzb>http://nzbs.org/index.php?action=getnzb&nzbid=750588&i=9695&h=92653d4053a322e123dbbb3da887c5c5</report:nzb>
|
||||
<report:poster><![CDATA[teevee@4u.net (teevee)]]></report:poster>
|
||||
<report:size type="bytes">1788245756</report:size>
|
||||
<report:postdate>Wed, 14 Sep 2011 00:00:15 +0000</report:postdate>
|
||||
|
||||
<report:moreinfo>http://www.tvrage.com/shows/id-5162</report:moreinfo>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
23
NzbDrone.Core.Test/Files/RSS/SizeParsing/nzbsrus.xml
Normal file
23
NzbDrone.Core.Test/Files/RSS/SizeParsing/nzbsrus.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1" ?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>NZBsRus.com</title>
|
||||
<description>This is the NZBs'R'US RSS feed.</description>
|
||||
<link>http://www.nzbsrus.com</link>
|
||||
<language>en-US</language>
|
||||
<ttl>5</ttl>
|
||||
|
||||
<item>
|
||||
<title>Shameless.S08E17.720p.HDTV.x264-BiA</title>
|
||||
<pubDate>Wed, 14 Sep 2011 01:06:49 am</pubDate>
|
||||
<category>TV - HD</category>
|
||||
<link>http://www.nzbsrus.com/nzbdownload_rss.php/457967/68614/4182562f71f29cd36b9e7495d00abcff/</link>
|
||||
<description>
|
||||
Size 1.67 GiB (42 files)
|
||||
Files: 34
|
||||
Par2s: 8
|
||||
|
||||
</description>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
Loading…
Add table
Add a link
Reference in a new issue