Commit graph

491 commits

Author SHA1 Message Date
JackDandy
6c0638c262 Change provider KAT remove dead url.
Change provider KAT to use mediaExtensions from common instead of private list.
Change provider KAT provider PEP8 and code convention cleanup.
2015-07-03 12:39:09 +01:00
JackDandy
d80256c4f3 Remove useless webproxies from provider TPB as they fail for one reason or another.
Change provider TPB to use mediaExtensions from common instead of hard-coded private list.
Add new tld variants to provider TPB.
Add test for authenticity to provider TPB to notify of 3rd party block.
2015-06-17 22:14:54 +01:00
JackDandy
47347884cb Fix fault matching air by date shows by using correct episode/season strings in find search results. 2015-06-09 15:43:54 +01:00
Adam
37496189f1 Change py2 exception clauses to py2/3 compatible clauses
Add py2/3 regression testing for exception clauses

Any new code added with old py2 style exceptions will now fail the travis test
2015-06-08 22:56:45 +08:00
JackDandy
93c219d82e Add Rarbg torrent provider.
Note: The merging of all qualities into one category in API v2 mean more results likely to be cropped. The vendor switched to this method from their (imho, better) original of listing category numbers. It was suggested that clients add and maintain all possible search strings that signify as quality. However, this would still trigger misses, introduce other issues, plus add needless non-standard API complexity. Conclusion; as designed, SG will utilise other configured providers when this one fails to hit targets, this provider should not be configured as a sole provider.
2015-06-08 13:04:59 +01:00
JackDandy
56a3411649 Change refactor and code simplification for torrent providers. 2015-06-06 06:31:20 +01:00
JackDandy
1242481803 Change typo. 2015-06-04 23:09:36 +01:00
JackDandy
96b5188a32 Change provider Womble's use SSL. 2015-06-02 15:30:42 +01:00
JackDandy
39bda5f328 Fix provider SCC failing to find episodes of air by date shows.
Fix searching propers.
Fix stop snatching releases for episodes already completed.
Fix handle null server responses.
Change remove 1 of 3 requests per search to save 30% time.
2015-05-27 13:37:48 +01:00
JackDandy
9ad4b4cd30 Remove EZRSS provider. 2015-05-18 19:54:25 +01:00
JackDandy
2083dfdb30 Change prevent wasted API hit where show and exception names create a duplicate sanitised year. 2015-04-29 02:15:45 +01:00
Adam
a9da4c2486 Merge branch 'master' into develop 2015-04-25 16:49:50 +08:00
Prinz23
8f69adaada Fix clearing provider cache 2015-04-25 16:48:15 +08:00
Adam
edcea76060 Merge branch 'master' into develop 2015-04-19 14:52:04 +08:00
Adam
f0fb6b8349 Fix IPTorrents provider search strings and URL for new site changes 2015-04-19 14:49:56 +08:00
Adam
7caef44bb9 Change to consolidate and tidy some provider code [part 2] 2015-04-18 13:17:47 +08:00
Adam
7477a79cb8 Change to consolidate and tidy some provider code 2015-04-18 10:28:44 +08:00
Adam
89e25e6da4 Add ToTV provider 2015-04-15 12:44:42 +08:00
JackDandy
d479fbfc5a Change improve backlog search. 2015-03-29 03:27:59 +01:00
vergessen
9384447b85 code cleanup 2015-03-25 08:11:50 -05:00
vergessen
afbe99da65 add animenzb provider 2015-03-25 08:11:50 -05:00
adam
2854ae8bfa Merge branch 'release/0.7.0' into develop 2015-03-03 20:18:06 +08:00
Supremicus
3f357dec08 Remove defunct Fanzub provider 2015-03-03 19:25:46 +08:00
JackDandy
c4f4cae440 Change Wombles to use tv-dvd section. 2015-02-28 17:41:18 +00:00
JackDandy
ae50f300e7 Change TPB webproxy list and add SSL variants, PEP8 and code cleanup. 2015-02-23 00:44:29 +00:00
JackDandy
f8e9d1aa7d Change FreshOnTv login parameter and use secure URLs.
Add logging of Cloudflare blocking.
Add prevention of vacant cookie tracebacks.
2015-02-22 17:46:48 +00:00
JackDandy
71590dbf07 Change TorrentBytes login parameter in line with site change.
Add SSL download query argument.
Ensure search term is cleansed before use.
2015-02-22 17:42:08 +00:00
JackDandy
55b0758b0f Change SCC URLs to remove redirection overhead.
PEP8 and code cleanup.
2015-02-22 17:34:04 +00:00
JackDandy
74722c3a90 Change IPT URLs to reduce redirects. 2015-02-14 16:53:30 +00:00
Supremicus
bab72a5644 Change The Pirate Bay back
* Change The Pirate Bay url back as it's now back up and oldpiratebay
hasn't been updated for weeks
* Remove duplicate thepiratebay icon
2015-02-11 14:36:39 +10:00
JackDandy
9f5b00d66c Merge branch 'hotfix/0.6.3' into develop 2015-02-10 05:48:09 +00:00
JackDandy
c48981972f Change KickAssTorrents URL. 2015-02-10 05:32:59 +00:00
Supremicus
47da38a914 Logging message tweaks and minor PEP8 tweaks
* Change corrected spelling & better clarified various log messages
* Change minor PEP8 tweaks in sab.py
* Add api disabled error code for newznab providers
2015-02-08 12:59:10 +10:00
adam
c016f38998 Merge branch 'hotfix/0.6.1' into develop 2015-01-20 22:18:19 +08:00
adam
16356ccbfc Fix snatching from TorrentBytes provider 2015-01-20 22:01:11 +08:00
Adam
b344aaf1ec Remove obsolete tvtorrents search provider 2015-01-18 21:56:10 +08:00
JackDandy
c16903bd73 Change "Daily" search to "Recent" search. 2015-01-07 19:54:18 +08:00
adam
c02de5eea5 Merge branch 'feature/FixBtnAnime' into develop 2015-01-05 22:50:53 +08:00
adam
3c295485ee Add BTN api call parameter debug logging 2015-01-05 22:47:33 +08:00
Adam
7b969b334b Fix anime searches on BTN provider 2015-01-03 21:09:05 +08:00
Supremicus
b2ca923270 Fix Womble's Index searching
* Fix Womble's Index searching (ssl disabled for now, old categories are
the new active ones again)
2014-12-28 01:14:40 +10:00
Supremicus
7b3499f958 Change ThePirateBay to use oldpiratebay
* Change ThePirateBay to use oldpiratebay as a temporary fix
2014-12-22 17:47:11 +10:00
JackDandy
6e6cec3b66 Fix to use new TorrentDay URLs. 2014-12-14 19:16:50 +00:00
Supremicus
26497b066e Change KickassTorrents provider URLs 2014-12-09 13:31:56 +00:00
Adam
ff654aa894 Remove obsolete Animezb provider
Animezb provider no longer exists
2014-11-17 11:49:02 +00:00
Adam
8b5ab27444 Remove unsupported t411 provider
Removing unsupported french private tracker
2014-11-17 14:50:44 +08:00
Supremicus
4c8c6b21d5 Change logos, text etc. branding to SickGear. 2014-11-12 20:56:40 +00:00
Supremicus
c0d6641f04 Fix missing kat url in config_providers 2014-11-09 13:45:10 +10:00
Anthony Snavely
3494d071b9 Fix HD-Torrents
Fix HD-Torrents so it works properly.
2014-10-22 14:39:33 +08:00
JackDandy
b7c37ccaf7 Fix searching IPTorrentsProvider. 2014-10-17 04:21:21 +01:00
Adam
a72779d5d3 Fix omgwtfnzb provider retention = 1 bug 2014-10-07 08:27:02 +08:00
KontiSR
0d415fcc20 This is a first attempt of getting the season pack downloading to work.
Unfortunately some of the old code I modified is still not 100% clear to me.. so I can't really oversee if this will work. That's why I suggest, this should be extensively tested, before merging into master!

I broke backlog searching.. Should be working again.

Tested, and seems to be working fine!
2014-09-25 13:18:07 +02:00
Adam
c1a199d698 Fix for attribute error when no newznab responses are available 2014-09-23 22:15:13 +08:00
adam
5ac3895600 Fixes daily search and speed improvements 2014-09-20 20:34:00 +08:00
echel0n
a20b9cb6ba Merge pull request #815 from KontiSR/dev_fix_tokyotosho_no_rows_returned
Dev fix tokyotosho no rows returned
2014-09-19 20:54:38 -07:00
echel0n
f54412fc3d Merge pull request #816 from KontiSR/fix_newznab_offset
Fix offset calculation. No more unnecessary (double) searches.
2014-09-19 20:54:29 -07:00
echel0n
2a8c00e774 Merge pull request #817 from KontiSR/dev_nyaatorrent_qualityparsing
Fixed the qualityparsing for nyaatorrent search results
2014-09-19 20:54:09 -07:00
echel0n
8a10b0ced5 Merge pull request #818 from KontiSR/dev_addsearchstring_newznab_no_ep_par
Made improvements for searching for anime on newznab providers, who have...
2014-09-19 20:53:58 -07:00
darkdragon2000
7ba97b6b01 Update kat.py
Fix search string for air-by-date to only return episodes for the date searched.
2014-09-19 16:45:59 -04:00
KontiSR
d0dac45315 Made improvements for searching for anime on newznab providers, who haven't straitened out there anime episode parsing.
Should provide more search result using for example: usenet-crawler, nZEDb, spotweb.

Newznab now also searches by q= querystring. Ommits the Ep.

Needed to cast ep (int) to str, for str concatenation

add searchstrings for searching newznab providers excluding the ep= paramater. I've added the episode to the q= param. querystring could look like: ?q=showname%2043
2014-09-19 16:17:49 +02:00
KontiSR
fd4e26795f Fix offset calculation. No more unnecessary (double) searches.
For anime shows: if no absolute numbering is available, use the default numbering.
2014-09-19 15:49:26 +02:00
KontiSR
7e3b9848bd Fixed the qualityparsing for nyaatorrent search results 2014-09-19 15:43:31 +02:00
KontiSR
8b678445cc Fix exception for when no results returned. 2014-09-19 12:05:50 +02:00
KontiSR
4c8b100be9 Shouldn't be copy() but update().
Tested now, and at least the exception is gone.
2014-09-17 13:43:10 +02:00
KontiSR
4bfb271e8d Can't += dicts. Need to dict.copy()
Bug in master while doing daily search: https://sickrage.tv/forums/forum/help-support/bug-issue-reports/8358-unsupported-operand-type-s-for-dict-and-dict
2014-09-17 10:18:47 +02:00
echel0n
1e8233d430 Merge pull request #803 from tresni/fixrsstorrent
Fix RssTorrent where there may be empty values in configuration
2014-09-15 12:12:22 -07:00
echel0n
67bd1a9e98 Fix for daily searches and high cpu usage plus increases search speed 2014-09-15 01:28:11 -07:00
echel0n
f211a7eccf Added sleep timer for proper finder code to prevent high CPU usage 2014-09-14 18:03:21 -07:00
echel0n
4fe3a96051 Possible fix for high CPU usage when doing NZB searches 2014-09-14 17:59:37 -07:00
Brian Hartvigsen
93f06af300 Fix where there may be empty values (such as cookies) in older configurations 2014-09-14 13:11:57 -06:00
Adam
80a028d1a6 Add TokyoToshokanProvider logo 2014-09-12 20:41:16 +08:00
adam111316
2a5706c7fd Merge pull request #793 from adam111316/TT
Add TokyoToshokanProvider support
2014-09-12 20:00:42 +08:00
Adam
1790b3be7f Add TokyoToshokanProvider support 2014-09-12 19:54:49 +08:00
rleadbetter
927e98996e Leading zero fix for Anime. 2014-09-11 06:51:02 +10:00
Adam
b43248a644 Fixing more newznab issues sigh 2014-09-11 00:25:22 +08:00
adam111316
58cdb6ba5d Merge pull request #789 from adam111316/fix_newznab_backlog
Fixes backlog for newznab providers
2014-09-10 23:32:46 +08:00
Adam
5d1ae90565 Fixes backlog for newznab providers 2014-09-10 23:30:08 +08:00
KontiSR
3366108255 - Removed annoying alert message when failed to retrieve newsnab capabilities (categories)
- Added backend debug logging
2014-09-10 16:43:58 +02:00
adam111316
88479e7e1b Merge pull request #787 from djoole/t411
Fix proper search for t411
2014-09-10 10:22:24 +08:00
djoole
cef62afdcf Fix proper search for t411 2014-09-10 01:07:27 +02:00
echel0n
8f6d014830 Fixed issues with cache results being used during searches 2014-09-07 02:41:21 -07:00
echel0n
2193a4bfd1 Fixed search issues regarding error about result attribute being referenced early 2014-09-07 02:08:24 -07:00
echel0n
991a93991e Fixed newznab to search no more then 1000 results 2014-09-07 00:56:23 -07:00
echel0n
ba4b408af3 Improved newznab offset code 2014-09-07 00:48:09 -07:00
echel0n
ab16430b1a Improved newznab offset code 2014-09-07 00:44:48 -07:00
echel0n
20c0b4ea72 Fixed global name season error during searches 2014-09-06 22:25:01 -07:00
echel0n
59675f27ac Fixed failed download handling.
Improved search queue code.
2014-09-06 21:36:23 -07:00
echel0n
4af28657af Fixed TypeError: list indices must be integers, not list that occured during searches 2014-09-06 16:55:39 -07:00
echel0n
e3781ece75 Merge pull request #780 from djoole/t411
Added the torrent provider for www.t411.me tracker
2014-09-05 19:17:32 -07:00
echel0n
a32de0d523 Merge pull request #769 from KontiSR/dev
Added gui for for choosing newznab (tv) categories
2014-09-05 19:16:46 -07:00
djoole
159e8ceb7c Added the torrent provider for www.t411.me tracker 2014-09-06 02:16:04 +02:00
Adam
1317848782 Fix infinite loop with dognzb 2014-09-05 18:40:37 +08:00
Adam
20725c1da7 Testing fix for missing api key on newznab providers 2014-09-03 15:36:42 +08:00
Woodpaker
8b4bb3a5a5 Fixed some git conflicts 2014-09-01 18:29:52 +02:00
Woodpaker
000467cc73 * Added saving of changed newznab categories in backend.
Added gui for selecting categories from multiselect box.
Created some helper function in js, for dynamically modifying selects/options

Made results of function for retrieving newznab capabilities more generic. In that now always a valid json is returned with success,tv_categories,error

Added gui elements for retrieving and displaying newznab capabilities

Added backend functions for calling ajax /getNewznabCategories?name=yourNewznabProvider&url=https://newznabprovURL&key=YourApiKey
Returns json.dumps() with TV category capabilities of newznab provider. Is going to be used for new gui element in adding newsnab provider.
2014-09-01 17:57:52 +02:00
Andreas Älveborn
ecab1c35f8 Fixed missing slash on Kat mirror URL
Changed http://www.kickmirror.com to http://www.kickmirror.com/
2014-08-31 15:16:13 +02:00
echel0n
ee458bd211 Fixed AttributeError: 'NoneType' object has no attribute 'is_scene' in scene_numbering code.
Show root dirs can not be set from general config menu.
Mass editing shows now has the ability to delete root dirs as well as edit them.
Daily search no longer is restricted to just 1 week of results for searching from which now allows for replacing lower quality downloads with higher quality ones if available.
RSS Cache is updated for each provider on demand now when performing manual, failed, backlog, or daily searches.
2014-08-30 01:47:00 -07:00
echel0n
ea66c2c41b Newznab providers now search by tvrage ID if available and show name incase tvrage ID doesnt return any results 2014-08-28 23:15:51 -07:00
echel0n
6fd19de7e2 Fix for migrating to new newznab and torrent provider config formats 2014-08-28 22:52:02 -07:00
echel0n
ae5644ba91 Fix for migrating to new newznab provider config format 2014-08-28 22:30:30 -07:00
echel0n
bcffc09589 Replaced provider backlog only search option with 2 new options that allow you to enable daily searches and backlog searches individually per provider, default is enabled for both. 2014-08-28 22:16:25 -07:00
whiethatguy
ce52dc8333 Update bitsoup.py - new table format
Table that lists torrents has changed, and the download link is on third column
2014-08-27 10:14:13 -03:00
echel0n
4739ab12ae Added www.kickmirror.com to list of urls to try 2014-08-25 23:09:13 -07:00
echel0n
8f43c58c9e Merge pull request #752 from adam111316/torrentbytes_fix
Fix for torrentbytes provider where torrentid is <6 characters long
2014-08-25 22:59:39 -07:00
Adam
f43c214069 Fixes rejection of invalid torrent files 2014-08-26 12:57:40 +08:00
Adam
13bef2b92d Fix for torrentbytes provider where torrentid is <6 characters long 2014-08-25 17:36:14 +08:00
adam111316
905b41c46a Fixes issues with newznab providers 2014-08-25 12:41:36 +08:00
echel0n
4b6602797f Fix for newznab provider searches unicode issues 2014-08-23 14:40:13 -07:00
echel0n
f65262e0e9 Fix for newznab provider searches 2014-08-22 23:22:46 -07:00
adam111316
024cf79348 Merge pull request #736 from adam111316/usenet_offset
Support for newznab offset parameter - https://newznab.readthedocs.org/e...
2014-08-23 11:30:00 +08:00
echel0n
be17ed122b Fix for air-by-date and sports shows issues with parsing results. 2014-08-22 00:21:37 -07:00
Adam
6179c8dfad Fix for torrent rss feeds not validating on add 2014-08-20 16:34:42 +08:00
Adam
4b964b77e2 Support for newznab offset parameter - https://newznab.readthedocs.org/en/latest/misc/api/ 2014-08-20 16:02:55 +08:00
adam
3bf102d160 Fixes speedcd provider issues 2014-08-18 16:49:14 +08:00
echel0n
8415b32fc6 Possible fix for failed to send torrent errors 2014-08-17 22:51:45 -07:00
dkboy
63dbe9e522 Update bitsoup.py
they've reorganized columns
2014-08-17 14:42:07 +12:00
Adam
96f918742a Fix for omgwtfnzb skipping: release error 2014-08-15 11:43:11 +08:00
adam
41931b33a9 Fixes Torrent Leech daily search URL
Fixes TV torrents daily search no results
2014-08-13 17:15:25 +08:00
adam
22f3a2e41b Consolidate more provider code
Fix tvtorrents issue

Remove old providers
2014-08-13 05:52:59 +08:00
echel0n
4d7d85e21b Merge pull request #704 from adam111316/hdbits_cache
Fix for HDbits tvcache issue
2014-08-10 21:37:02 -07:00
Adam
66f962f89b Fix for tpb ABD shows 2014-08-11 08:10:24 +08:00
Adam
e19f1ee53e Fix for HDbits tvcache issue 2014-08-11 07:59:56 +08:00
echel0n
318379522b Merge pull request #692 from Supremicus/dev
Provider image fixes.
2014-08-07 22:11:26 -07:00
echel0n
aa09e88d5f Merge pull request #689 from adam111316/tidy
Tidying provider code
2014-08-07 22:10:40 -07:00
Supremicus
b5c703c893 Provider image fixes.
newznab.py - changed to use provider image from set gui interface (for
gui skin support).
rsstorrent.py - as per above, directory was wrong all together.
2014-08-08 09:17:31 +10:00
Adam
6ad5ccf966 HDbits fix 2014-08-06 19:58:10 +08:00
Adam
4b3a680bb3 Tidy provider code 2014-08-06 01:38:16 +08:00
echel0n
1908c74e96 Merge pull request #679 from adam111316/nyaa_consolidation
Remove unnecessary code from nyaatorrents provider and PEP8
2014-08-03 00:14:11 -07:00
echel0n
76011d4653 Merge pull request #680 from adam111316/animezb_consolidation
Animezb tidy proper code and PEP8
2014-08-03 00:14:03 -07:00
echel0n
493f9af02e Merge pull request #681 from adam111316/fanzub_tidy
Tidy fanzub proper code and PEP8
2014-08-03 00:13:55 -07:00
Adam
74fa44d14e Tidy fanzub proper code and PEP8 2014-07-31 18:18:12 +08:00
Adam
f94b0085f0 Animezb tidy proper code and PEP8 2014-07-31 18:11:46 +08:00
Adam
4728e19edf Remove unnecessary code from nyaatorrents provider and PEP8 2014-07-31 17:45:51 +08:00
echel0n
dbc30c43cb Switched the following providers to use HTTPS connections instead of standard HTTP, more secure. 2014-07-30 22:02:45 -07:00
echel0n
9761c6c6a3 Fixed issues with torrent blackhole download issues. 2014-07-30 21:31:54 -07:00
echel0n
b8b5947ae6 Fix for trakt.tv issues when adding/removing/syncing shows.
Fix for indexer mapper to return a result no matter what.
2014-07-30 16:33:28 -07:00
echel0n
e6c8982d2b Testing fix for torrent download issues from ezrss 2014-07-28 21:42:53 -07:00
echel0n
19a89d453c We now check if a torrent url links to a valid file before adding as a verified result to get snatched, this helps prevent issues when attempting to add torrent to client later on to find the url returned nothing resulting in a error. 2014-07-28 12:19:41 -07:00
echel0n
60205979a8 Merge pull request #667 from adam111316/anime_propers_3
Anime proper support
2014-07-27 07:17:55 -07:00
echel0n
9493a8f7e5 Added back in missing code for finding propers, was removed by mistake.
Fixed issue with torrent clients not snatching due to improper handling of torrent hashes/files.
2014-07-27 07:04:37 -07:00
Adam
fd9be53fcb Anime propers 2014-07-27 21:04:17 +08:00
echel0n
b13e72e0a3 Moved code for cleaning up cache folder to seperate function located in helper.py.
Added call to cache folder cleanup during SickRage main init.

Changed a error message in rss feed class to a debug message for when url returns no data.

Moved indexer api cache files to be placed under cache folder subfolder indexers.

Moved rss feed cache files to be placed under cache folder subfolder rss.
2014-07-27 04:58:14 -07:00
echel0n
14c354b551 Added proxy support to Indexer APIs.
Provider getURL and downloadResult functions now removed and replaced with ones from helpers.py to help slim the code down plus allow more better control over request sessions.

Removed TVTumbler code.

Fixed HDBits provider.

Fixed config settings that were ment to be booleans but instead where set as str or int, should help resolve random html errors.

XEM Refresh check re-coded.

NameParser code for creating show object has been changed to only attempt at the very end once its found the bestMatch result, helps on resources and performance.
2014-07-27 03:59:21 -07:00
echel0n
0e5fbbc5c3 Fix for incorrect show snatches 2014-07-24 21:29:03 -07:00
echel0n
f47734446d Fixed further json issues with speedcd provider.
Fixed several providers and ssl cert verify issues.

Air-by-date shows now automatically get there respective season/episode numbers during release parsing.
2014-07-24 11:16:59 -07:00
echel0n
b16ff81478 Fixes for thread naming issues where provider names are getting stacked on top each other per loop iteration.
Fix for speedcd no json data issue.

Fix for DB upgrade syntax errors caused by previous commit.
2014-07-24 09:12:29 -07:00
echel0n
161226180f Cleaned up NyaaTorrents search code and fixed unicode issues. 2014-07-24 01:33:38 -07:00
echel0n
a697805923 Fixed NameParser to properly parse anime episodes that use normal season and episode naming conventions.
NameParser now properly creates absolute numbers from season/episode info or season/episode numbers from absolute info for anime shows. Removed scene convert routine and migrated the code into the parsing routine with a boolean to scene convert if needed.

Fixed NyaaTorrents issue with dict object errors.
2014-07-24 01:27:35 -07:00
echel0n
de5db9be64 Added ability to set a default indexer for trakt notifier used for adding shows from watch list so that SickRage knows what indexer to set the show as.
Indexer mapping now uses indexer api calls to gather its information and then stores it to a new table called indexer_mapping for instant lookups later on.

Fixed trakt related issues for adding new shows and syncing.

Centered items at bottom of pages to just look a little nicer and fit properly.
2014-07-23 22:07:01 -07:00
echel0n
3a2b67330c During backlog/manual/failed searches we now cache disgarded/ignored results pre-parsed for usage later on incase we end up setting a episode to wanted that matches said results, allows for maximum performance and helps limit the waste of resources used. 2014-07-21 23:00:58 -07:00