Added a duplicated item to Queue.txt, reformated existing json sample files.
This commit is contained in:
parent
03dc4a5602
commit
5e3e071692
|
@ -1 +1,25 @@
|
||||||
{"categories":["*","anime","apps","books","consoles","ds-games","emulation","games","misc","movies","music","pda","resources","test","tv","tv-dvd","unknown","wii-games","xbox-dlc","xbox-xbla","xxx"]}
|
{
|
||||||
|
"categories":[
|
||||||
|
"*",
|
||||||
|
"anime",
|
||||||
|
"apps",
|
||||||
|
"books",
|
||||||
|
"consoles",
|
||||||
|
"ds-games",
|
||||||
|
"emulation",
|
||||||
|
"games",
|
||||||
|
"misc",
|
||||||
|
"movies",
|
||||||
|
"music",
|
||||||
|
"pda",
|
||||||
|
"resources",
|
||||||
|
"test",
|
||||||
|
"tv",
|
||||||
|
"tv-dvd",
|
||||||
|
"unknown",
|
||||||
|
"wii-games",
|
||||||
|
"xbox-dlc",
|
||||||
|
"xbox-xbla",
|
||||||
|
"xxx"
|
||||||
|
]
|
||||||
|
}
|
|
@ -1 +1,99 @@
|
||||||
{"history":{"active_lang":"en","paused":false,"session":"5c770e3197e4fe763423ee7c392c25d1","restart_req":false,"power_options":true,"slots":[{"action_line":"","show_details":"True","script_log":"","meta":null,"fail_message":"","loaded":false,"id":9858,"size":"970 MB","category":"tv","pp":"D","retry":0,"completeness":0,"script":"None","nzb_name":"The.Mentalist.S04E12.720p.HDTV.x264-IMMERSE.nzb","download_time":524,"storage":"C:\\ServerPool\\ServerFolders\\Unsorted TV\\The Mentalist - 4x12 - My Bloody Valentine [HDTV]","status":"Completed","script_line":"","completed":1327033479,"nzo_id":"SABnzbd_nzo_0crgis","downloaded":1016942445,"report":"","path":"D:\\SABnzbd\\downloading\\The Mentalist - 4x12 - My Bloody Valentine [HDTV]","postproc_time":24,"name":"The Mentalist - 4x12 - My Bloody Valentine [HDTV]","url":"","bytes":1016942445,"url_info":"","stage_log":[{"name":"Download","actions":["Downloaded in 8 minutes 44 seconds at an average of 1.8 MB/s"]},{"name":"Repair","actions":["[the.mentalist.s04e12.720p.hdtv.x264-immerse] Quick Check OK"]},{"name":"Unpack","actions":["[the.mentalist.s04e12.720p.hdtv.x264-immerse] Unpacked 1 files/folders in 23 seconds"]}]}],"speed":"0 ","helpuri":"http://wiki.sabnzbd.org/","size":"0 B","uptime":"1d","total_size":"10.2 T","month_size":"445.7 G","week_size":"46.6 G","version":"0.6.9","new_rel_url":"http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/sabnzbd-0.6.14","diskspacetotal2":"9314.57","color_scheme":"gold","diskspacetotal1":"871.41","nt":true,"status":"Idle","last_warning":"2012-01-19 23:58:01,736\nWARNING:\nAPI Key incorrect, Use the api key from Config->General in your 3rd party program:","have_warnings":"3","cache_art":"0","sizeleft":"0 B","finishaction":null,"paused_all":false,"cache_size":"0 B","new_release":"0.6.14","pause_int":"0","mbleft":"0.00","diskspace1":"869.82","darwin":false,"timeleft":"0:00:00","mb":"0.00","noofslots":9724,"day_size":"0 ","eta":"unknown","nzb_quota":"","loadavg":"","cache_max":"-1","kbpersec":"0.00","speedlimit":"","webdir":"D:\\SABnzbd\\SABnzbd\\interfaces\\Plush\\templates","diskspace2":"1084.96"}}
|
{
|
||||||
|
"history":{
|
||||||
|
"active_lang":"en",
|
||||||
|
"paused":false,
|
||||||
|
"session":"5c770e3197e4fe763423ee7c392c25d1",
|
||||||
|
"restart_req":false,
|
||||||
|
"power_options":true,
|
||||||
|
"slots":[
|
||||||
|
{
|
||||||
|
"action_line":"",
|
||||||
|
"show_details":"True",
|
||||||
|
"script_log":"",
|
||||||
|
"meta":null,
|
||||||
|
"fail_message":"",
|
||||||
|
"loaded":false,
|
||||||
|
"id":9858,
|
||||||
|
"size":"970 MB",
|
||||||
|
"category":"tv",
|
||||||
|
"pp":"D",
|
||||||
|
"retry":0,
|
||||||
|
"completeness":0,
|
||||||
|
"script":"None",
|
||||||
|
"nzb_name":"The.Mentalist.S04E12.720p.HDTV.x264-IMMERSE.nzb",
|
||||||
|
"download_time":524,
|
||||||
|
"storage":"C:\\ServerPool\\ServerFolders\\Unsorted TV\\The Mentalist - 4x12 - My Bloody Valentine [HDTV]",
|
||||||
|
"status":"Completed",
|
||||||
|
"script_line":"",
|
||||||
|
"completed":1327033479,
|
||||||
|
"nzo_id":"SABnzbd_nzo_0crgis",
|
||||||
|
"downloaded":1016942445,
|
||||||
|
"report":"",
|
||||||
|
"path":"D:\\SABnzbd\\downloading\\The Mentalist - 4x12 - My Bloody Valentine [HDTV]",
|
||||||
|
"postproc_time":24,
|
||||||
|
"name":"The Mentalist - 4x12 - My Bloody Valentine [HDTV]",
|
||||||
|
"url":"",
|
||||||
|
"bytes":1016942445,
|
||||||
|
"url_info":"",
|
||||||
|
"stage_log":[
|
||||||
|
{
|
||||||
|
"name":"Download",
|
||||||
|
"actions":[
|
||||||
|
"Downloaded in 8 minutes 44 seconds at an average of 1.8 MB/s"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"Repair",
|
||||||
|
"actions":[
|
||||||
|
"[the.mentalist.s04e12.720p.hdtv.x264-immerse] Quick Check OK"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"Unpack",
|
||||||
|
"actions":[
|
||||||
|
"[the.mentalist.s04e12.720p.hdtv.x264-immerse] Unpacked 1 files/folders in 23 seconds"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"speed":"0 ",
|
||||||
|
"helpuri":"http://wiki.sabnzbd.org/",
|
||||||
|
"size":"0 B",
|
||||||
|
"uptime":"1d",
|
||||||
|
"total_size":"10.2 T",
|
||||||
|
"month_size":"445.7 G",
|
||||||
|
"week_size":"46.6 G",
|
||||||
|
"version":"0.6.9",
|
||||||
|
"new_rel_url":"http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/sabnzbd-0.6.14",
|
||||||
|
"diskspacetotal2":"9314.57",
|
||||||
|
"color_scheme":"gold",
|
||||||
|
"diskspacetotal1":"871.41",
|
||||||
|
"nt":true,
|
||||||
|
"status":"Idle",
|
||||||
|
"last_warning":"2012-01-19 23:58:01,736\nWARNING:\nAPI Key incorrect, Use the api key from Config->General in your 3rd party program:",
|
||||||
|
"have_warnings":"3",
|
||||||
|
"cache_art":"0",
|
||||||
|
"sizeleft":"0 B",
|
||||||
|
"finishaction":null,
|
||||||
|
"paused_all":false,
|
||||||
|
"cache_size":"0 B",
|
||||||
|
"new_release":"0.6.14",
|
||||||
|
"pause_int":"0",
|
||||||
|
"mbleft":"0.00",
|
||||||
|
"diskspace1":"869.82",
|
||||||
|
"darwin":false,
|
||||||
|
"timeleft":"0:00:00",
|
||||||
|
"mb":"0.00",
|
||||||
|
"noofslots":9724,
|
||||||
|
"day_size":"0 ",
|
||||||
|
"eta":"unknown",
|
||||||
|
"nzb_quota":"",
|
||||||
|
"loadavg":"",
|
||||||
|
"cache_max":"-1",
|
||||||
|
"kbpersec":"0.00",
|
||||||
|
"speedlimit":"",
|
||||||
|
"webdir":"D:\\SABnzbd\\SABnzbd\\interfaces\\Plush\\templates",
|
||||||
|
"diskspace2":"1084.96"
|
||||||
|
}
|
||||||
|
}
|
|
@ -1 +1,50 @@
|
||||||
{"history":{"active_lang":"en","paused":false,"session":"5c770e3197e4fe763423ee7c392c25d1","restart_req":false,"power_options":true,"slots":[ ],"speed":"0 ","helpuri":"http://wiki.sabnzbd.org/","size":"0 B","uptime":"1d","total_size":"10.2 T","month_size":"445.7 G","week_size":"46.6 G","version":"0.6.9","new_rel_url":"http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/sabnzbd-0.6.14","diskspacetotal2":"9314.57","color_scheme":"gold","diskspacetotal1":"871.41","nt":true,"status":"Idle","last_warning":"2012-01-19 23:58:01,736\nWARNING:\nAPI Key incorrect, Use the api key from Config->General in your 3rd party program:","have_warnings":"3","cache_art":"0","sizeleft":"0 B","finishaction":null,"paused_all":false,"cache_size":"0 B","new_release":"0.6.14","pause_int":"0","mbleft":"0.00","diskspace1":"869.82","darwin":false,"timeleft":"0:00:00","mb":"0.00","noofslots":9724,"day_size":"0 ","eta":"unknown","nzb_quota":"","loadavg":"","cache_max":"-1","kbpersec":"0.00","speedlimit":"","webdir":"D:\\SABnzbd\\SABnzbd\\interfaces\\Plush\\templates","diskspace2":"1084.96"}}
|
{
|
||||||
|
"history":{
|
||||||
|
"active_lang":"en",
|
||||||
|
"paused":false,
|
||||||
|
"session":"5c770e3197e4fe763423ee7c392c25d1",
|
||||||
|
"restart_req":false,
|
||||||
|
"power_options":true,
|
||||||
|
"slots":[
|
||||||
|
|
||||||
|
],
|
||||||
|
"speed":"0 ",
|
||||||
|
"helpuri":"http://wiki.sabnzbd.org/",
|
||||||
|
"size":"0 B",
|
||||||
|
"uptime":"1d",
|
||||||
|
"total_size":"10.2 T",
|
||||||
|
"month_size":"445.7 G",
|
||||||
|
"week_size":"46.6 G",
|
||||||
|
"version":"0.6.9",
|
||||||
|
"new_rel_url":"http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/sabnzbd-0.6.14",
|
||||||
|
"diskspacetotal2":"9314.57",
|
||||||
|
"color_scheme":"gold",
|
||||||
|
"diskspacetotal1":"871.41",
|
||||||
|
"nt":true,
|
||||||
|
"status":"Idle",
|
||||||
|
"last_warning":"2012-01-19 23:58:01,736\nWARNING:\nAPI Key incorrect, Use the api key from Config->General in your 3rd party program:",
|
||||||
|
"have_warnings":"3",
|
||||||
|
"cache_art":"0",
|
||||||
|
"sizeleft":"0 B",
|
||||||
|
"finishaction":null,
|
||||||
|
"paused_all":false,
|
||||||
|
"cache_size":"0 B",
|
||||||
|
"new_release":"0.6.14",
|
||||||
|
"pause_int":"0",
|
||||||
|
"mbleft":"0.00",
|
||||||
|
"diskspace1":"869.82",
|
||||||
|
"darwin":false,
|
||||||
|
"timeleft":"0:00:00",
|
||||||
|
"mb":"0.00",
|
||||||
|
"noofslots":9724,
|
||||||
|
"day_size":"0 ",
|
||||||
|
"eta":"unknown",
|
||||||
|
"nzb_quota":"",
|
||||||
|
"loadavg":"",
|
||||||
|
"cache_max":"-1",
|
||||||
|
"kbpersec":"0.00",
|
||||||
|
"speedlimit":"",
|
||||||
|
"webdir":"D:\\SABnzbd\\SABnzbd\\interfaces\\Plush\\templates",
|
||||||
|
"diskspace2":"1084.96"
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,103 +1,126 @@
|
||||||
{
|
{
|
||||||
"queue": {
|
"queue":{
|
||||||
"active_lang": "en",
|
"active_lang":"en",
|
||||||
"cache_art": "10",
|
"cache_art":"10",
|
||||||
"cache_max": "67108864",
|
"cache_max":"67108864",
|
||||||
"cache_size": "7 MB",
|
"cache_size":"7 MB",
|
||||||
"categories": [
|
"categories":[
|
||||||
"*",
|
"*",
|
||||||
"apps",
|
"apps",
|
||||||
"consoles",
|
"consoles",
|
||||||
"emp",
|
"emp",
|
||||||
"movies",
|
"movies",
|
||||||
"tv"
|
"tv"
|
||||||
],
|
],
|
||||||
"color_scheme": "lightblue",
|
"color_scheme":"lightblue",
|
||||||
"darwin": false,
|
"darwin":false,
|
||||||
"diskspace1": "127.50",
|
"diskspace1":"127.50",
|
||||||
"diskspace2": "127.50",
|
"diskspace2":"127.50",
|
||||||
"diskspacetotal1": "157.76",
|
"diskspacetotal1":"157.76",
|
||||||
"diskspacetotal2": "157.76",
|
"diskspacetotal2":"157.76",
|
||||||
"eta": "01:45 PM Mon 23 Jan",
|
"eta":"01:45 PM Mon 23 Jan",
|
||||||
"finish": 0,
|
"finish":0,
|
||||||
"finishaction": null,
|
"finishaction":null,
|
||||||
"have_warnings": "20",
|
"have_warnings":"20",
|
||||||
"helpuri": "http://wiki.sabnzbd.org/",
|
"helpuri":"http://wiki.sabnzbd.org/",
|
||||||
"isverbose": false,
|
"isverbose":false,
|
||||||
"kbpersec": "2.18",
|
"kbpersec":"2.18",
|
||||||
"last_warning": "2012-01-19 23:42:39,934\nWARNING:\nAPI Key incorrect, Use the api key from Config->General in your 3rd party program:",
|
"last_warning":"2012-01-19 23:42:39,934\nWARNING:\nAPI Key incorrect, Use the api key from Config->General in your 3rd party program:",
|
||||||
"limit": 0,
|
"limit":0,
|
||||||
"loadavg": "",
|
"loadavg":"",
|
||||||
"mb": "686.67",
|
"mb":"686.67",
|
||||||
"mbleft": "657.89",
|
"mbleft":"657.89",
|
||||||
"new_rel_url": "http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/sabnzbd-0.6.14",
|
"new_rel_url":"http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/sabnzbd-0.6.14",
|
||||||
"new_release": "0.6.14",
|
"new_release":"0.6.14",
|
||||||
"newzbinDetails": true,
|
"newzbinDetails":true,
|
||||||
"noofslots": 2,
|
"noofslots":2,
|
||||||
"nt": true,
|
"nt":true,
|
||||||
"nzb_quota": "",
|
"nzb_quota":"",
|
||||||
"pause_int": "0",
|
"pause_int":"0",
|
||||||
"paused": false,
|
"paused":false,
|
||||||
"paused_all": false,
|
"paused_all":false,
|
||||||
"power_options": true,
|
"power_options":true,
|
||||||
"queue_details": "0",
|
"queue_details":"0",
|
||||||
"refresh_rate": "20",
|
"refresh_rate":"20",
|
||||||
"restart_req": false,
|
"restart_req":false,
|
||||||
"scripts": [],
|
"scripts":[
|
||||||
"session": "f37dc33baec2e5566f5aec666287870d",
|
|
||||||
"size": "687 MB",
|
],
|
||||||
"sizeleft": "658 MB",
|
"session":"f37dc33baec2e5566f5aec666287870d",
|
||||||
"slots": [
|
"size":"687 MB",
|
||||||
{
|
"sizeleft":"658 MB",
|
||||||
"avg_age": "149d",
|
"slots":[
|
||||||
"cat": "tv",
|
{
|
||||||
"eta": "06:55 AM Sat 21 Jan",
|
"avg_age":"149d",
|
||||||
"filename": "30 Rock - 1x05 - Title [HDTV]",
|
"cat":"tv",
|
||||||
"index": 0,
|
"eta":"06:55 AM Sat 21 Jan",
|
||||||
"mb": "267.44",
|
"filename":"30 Rock - 1x05 - Title [HDTV]",
|
||||||
"mbleft": "238.66",
|
"index":0,
|
||||||
"missing": 0,
|
"mb":"267.44",
|
||||||
"msgid": 6256072,
|
"mbleft":"238.66",
|
||||||
"nzo_id": "SABnzbd_nzo_qv6ilb",
|
"missing":0,
|
||||||
"percentage": "10",
|
"msgid":6256072,
|
||||||
"priority": "Normal",
|
"nzo_id":"SABnzbd_nzo_qv6ilb",
|
||||||
"script": "None",
|
"percentage":"10",
|
||||||
"size": "267 MB",
|
"priority":"Normal",
|
||||||
"sizeleft": "239 MB",
|
"script":"None",
|
||||||
"status": "Downloading",
|
"size":"267 MB",
|
||||||
"timeleft": "31:12:34",
|
"sizeleft":"239 MB",
|
||||||
"unpackopts": "3",
|
"status":"Downloading",
|
||||||
"verbosity": ""
|
"timeleft":"31:12:34",
|
||||||
},
|
"unpackopts":"3",
|
||||||
{
|
"verbosity":""
|
||||||
"avg_age": "580d",
|
},
|
||||||
"cat": "tv",
|
{
|
||||||
"eta": "01:45 PM Mon 23 Jan",
|
"avg_age":"580d",
|
||||||
"filename": "The Office (US) - 1x05 - Title [WEBDL]",
|
"cat":"tv",
|
||||||
"index": 1,
|
"eta":"01:45 PM Mon 23 Jan",
|
||||||
"mb": "419.23",
|
"filename":"The Office (US) - 1x05 - Title [WEBDL]",
|
||||||
"mbleft": "419.23",
|
"index":1,
|
||||||
"missing": 0,
|
"mb":"419.23",
|
||||||
"msgid": 5657628,
|
"mbleft":"419.23",
|
||||||
"nzo_id": "SABnzbd_nzo_dgrzts",
|
"missing":0,
|
||||||
"percentage": "0",
|
"msgid":5657628,
|
||||||
"priority": "Normal",
|
"nzo_id":"SABnzbd_nzo_dgrzts",
|
||||||
"script": "None",
|
"percentage":"0",
|
||||||
"size": "419 MB",
|
"priority":"Normal",
|
||||||
"sizeleft": "419 MB",
|
"script":"None",
|
||||||
"status": "Queued",
|
"size":"419 MB",
|
||||||
"timeleft": "86:01:55",
|
"sizeleft":"419 MB",
|
||||||
"unpackopts": "3",
|
"status":"Queued",
|
||||||
"verbosity": ""
|
"timeleft":"86:01:55",
|
||||||
}
|
"unpackopts":"3",
|
||||||
],
|
"verbosity":""
|
||||||
"speed": "2 K",
|
},
|
||||||
"speedlimit": "2",
|
{
|
||||||
"start": 0,
|
"status":"Paused",
|
||||||
"status": "Downloading",
|
"index":1,
|
||||||
"timeleft": "86:01:55",
|
"eta":"unknown",
|
||||||
"uptime": "2d",
|
"missing":0,
|
||||||
"version": "0.6.9",
|
"avg_age":"1d",
|
||||||
"webdir": "C:\\Tools\\SABnzbd\\interfaces\\Classic\\templates"
|
"script":"None",
|
||||||
}
|
"msgid":"",
|
||||||
|
"verbosity":"",
|
||||||
|
"mb":"546.13",
|
||||||
|
"sizeleft":"546 MB",
|
||||||
|
"filename":"DUPLICATE / The Big Bang Theory - 5x13 - The Recombination Hypothesis [HDTV] [Proper]",
|
||||||
|
"priority":"Normal",
|
||||||
|
"cat":"tv",
|
||||||
|
"mbleft":"546.13",
|
||||||
|
"timeleft":"0:00:00",
|
||||||
|
"percentage":"0",
|
||||||
|
"nzo_id":"SABnzbd_nzo_vayub5",
|
||||||
|
"unpackopts":"3",
|
||||||
|
"size":"546 MB"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"speed":"2 K",
|
||||||
|
"speedlimit":"2",
|
||||||
|
"start":0,
|
||||||
|
"status":"Downloading",
|
||||||
|
"timeleft":"86:01:55",
|
||||||
|
"uptime":"2d",
|
||||||
|
"version":"0.6.9",
|
||||||
|
"webdir":"C:\\Tools\\SABnzbd\\interfaces\\Classic\\templates"
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -374,6 +374,33 @@ namespace NzbDrone.Core.Test
|
||||||
parseResults[0].Size.Should().Be(1793148846);
|
parseResults[0].Size.Should().Be(1793148846);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void Server_Unavailable_503_should_not_log_exception()
|
||||||
|
{
|
||||||
|
Mocker.GetMock<HttpProvider>()
|
||||||
|
.Setup(h => h.DownloadStream(It.IsAny<String>(), It.IsAny<NetworkCredential>()))
|
||||||
|
.Throws(new WebException("503"));
|
||||||
|
|
||||||
|
Mocker.Resolve<NzbsRUs>().FetchRss();
|
||||||
|
|
||||||
|
ExceptionVerification.ExpectedErrors(0);
|
||||||
|
ExceptionVerification.ExpectedWarns(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void none_503_server_error_should_still_log_error()
|
||||||
|
{
|
||||||
|
Mocker.GetMock<HttpProvider>()
|
||||||
|
.Setup(h => h.DownloadStream(It.IsAny<String>(), It.IsAny<NetworkCredential>()))
|
||||||
|
.Throws(new WebException("some other server error"));
|
||||||
|
|
||||||
|
Mocker.Resolve<NzbsRUs>().FetchRss();
|
||||||
|
|
||||||
|
ExceptionVerification.ExpectedErrors(1);
|
||||||
|
ExceptionVerification.ExpectedWarns(0);
|
||||||
|
}
|
||||||
|
|
||||||
[TearDown]
|
[TearDown]
|
||||||
public void TearDown()
|
public void TearDown()
|
||||||
{
|
{
|
||||||
|
|
|
@ -190,6 +190,18 @@ namespace NzbDrone.Core.Providers.Indexer
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch(WebException webException)
|
||||||
|
{
|
||||||
|
if (webException.Message.Contains("503"))
|
||||||
|
{
|
||||||
|
_logger.Warn("{0} server is currently unbelievable. {1}", Name, webException.Message);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
webException.Data.Add("FeedUrl", url);
|
||||||
|
_logger.ErrorException("An error occurred while processing feed: " + Name, webException);
|
||||||
|
}
|
||||||
|
}
|
||||||
catch (Exception feedEx)
|
catch (Exception feedEx)
|
||||||
{
|
{
|
||||||
feedEx.Data.Add("FeedUrl", url);
|
feedEx.Data.Add("FeedUrl", url);
|
||||||
|
|
Loading…
Reference in New Issue