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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -43,7 +43,9 @@
|
||||||
"queue_details":"0",
|
"queue_details":"0",
|
||||||
"refresh_rate":"20",
|
"refresh_rate":"20",
|
||||||
"restart_req":false,
|
"restart_req":false,
|
||||||
"scripts": [],
|
"scripts":[
|
||||||
|
|
||||||
|
],
|
||||||
"session":"f37dc33baec2e5566f5aec666287870d",
|
"session":"f37dc33baec2e5566f5aec666287870d",
|
||||||
"size":"687 MB",
|
"size":"687 MB",
|
||||||
"sizeleft":"658 MB",
|
"sizeleft":"658 MB",
|
||||||
|
@ -89,6 +91,27 @@
|
||||||
"timeleft":"86:01:55",
|
"timeleft":"86:01:55",
|
||||||
"unpackopts":"3",
|
"unpackopts":"3",
|
||||||
"verbosity":""
|
"verbosity":""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status":"Paused",
|
||||||
|
"index":1,
|
||||||
|
"eta":"unknown",
|
||||||
|
"missing":0,
|
||||||
|
"avg_age":"1d",
|
||||||
|
"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",
|
"speed":"2 K",
|
||||||
|
|
|
@ -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