Private GIT

Skip to content
Snippets Groups Projects
Commit e1da33f5 authored by Sarakha63's avatar Sarakha63
Browse files

added scene exceptions in the git so we can customize it

parent b11aec50
Branches
Tags
No related merge requests found
72546: 'CSI',
73696: 'CSI: New York',
110381: 'Archer (2009)', 'Archer',
83897: 'Life After People: The Series',
80552: 'Kitchen Nightmares (US)', 'Kitchen Nightmares US',
75692: 'Law & Order: SVU',
71489: 'Law & Order: Criminal Intent', 'Law & Order: CI',
79590: 'Dancing With The Stars (US)',
73387: 'The Late Late Show with Craig Ferguson', 'Craig Ferguson',
85355: 'Jimmy Fallon',
75088: 'David Letterman',
76706: 'Big Brother (US)',
105521: 'The Colony', 'The Colony (US)',
76235: 'America\'s Funniest Home Videos', 'AFHV',
139941: 'Childrens Hospital (US)', 'Childrens Hospital',
83123: 'Merlin', 'Merlin (2008)',
76779: 'WWE Monday Night RAW',
164951: 'Shit My Dad Says',
168161: 'Law & Order: Los Angeles', 'Law & Order: LA',
77526: 'Star Trek: TOS',
72194: 'The Ellen Degeneres Show', 'Ellen Degeneres',
72073: 'Star Trek DS9',
195831: 'Zane Lamprey\'s Drinking Made Easy',
76133: 'Poirot', 'Agatha Christie\'s Poirot', 'Agatha Christie Poirot',
77444: 'This Old House Program',
73290: '60 Minutes (US)',
194751: 'Conan', 'Conan (2010)',
164451: 'Carlos (2010)',
70726: 'Babylon 5', 'Babylon5',
83714: 'Genius', 'Genius With Dave Gormand',
212571: 'Come Fly With Me (2010)',
81563: 'Border Security', 'Border Security Australia\'s Frontline',
172381: 'Silent Library (US)',
80646: 'Frontline (US)', 'Frontline',
189931: 'RBT (AU)',
73255: 'House', 'House M D',
73244: 'The Office (US)', 'The Office',
81386: 'Being Human', 'Being Human (UK)',
89991: 'Out of the Wild: The Alaskan Experiment', 'Out of the Wild: Venezuela',
222551: 'Only in America With Larry the Cable Guy', 'Only in America',
77733: 'Degrassi: The Next Generation', 'Degrassi TNG', 'Degrassi',
72224: 'The Outer Limits (1995)', 'The Outer Limits: TNS', 'The Outer Limits: The New Series',
78949: 'Thomas The Tank Engine & Friends', 'Thomas And Friends',
90651: 'Selling Houses Australia', 'Selling Houses Australia Extreme',
70578: 'Highway Patrol', 'Highway Patrol (AU)',
71699: 'The Outer Limits (1963)',
221001: '10 O Clock Live',
238521: 'Adam Eva',
74512: 'Wife Swap (US)',
166851: 'Noise Control (NZ)',
83774: 'Antiques Roadshow (UK)', 'Antiques Roadshow UK',
156771: 'National Geographic Shark Men'
246281: 'King', 'King (2011)',
76168: 'Batman: The Animated Series', 'Batman: TAS',
120541: 'Russell Howards Good News', 'Russell Howards Good News (UK)',
97731: 'Tosh.0', 'Tosh 0',
76736: 'The Black Adder', 'BlackAdder',
193501: 'XIII', 'XIII (2011)', 'XIII The Series (2011)',
248618: 'The Amazing Race Australia', 'The Amazing Race AU',
81559: 'The Biggest Loser Australia', 'The Biggest Loser AU',
92361: 'Known Universe', 'National Geographic Known Universe',
78804: 'Doctor Who (2005)',
79771: 'Air Crash Investigation', 'Air Crash Investigation Mayday', 'National Geographic Air Crash Investigation',
210171: 'The Killing (2011)', 'The Killing',
81670: 'The Murdoch Mysteries', 'Murdoch Mysteries', 'The Murdoch Mysteries (2008)',
79668: 'Anthony Bourdain: No Reservations', 'No Reservations',
70336: 'The Tonight Show with Jay Leno', 'Jay Leno',
139681: 'The Smoking Gun Presents: The World\'s Dumbest', 'World\'s Dumbest',
80625: 'MegaStructures', 'National Geographic Megastructures',
81400: 'National Geographic Channel Naked Science', 'National Geographic Naked Science',
82374: 'Ultimate Factories', 'National Geographic Ultimate Factories',
71985: 'Taboo', 'National Geographic Taboo',
84146: 'Secret Millionaire', 'Secret Millionaire US',
85228: 'Law & Order: UK', 'Law and Order UK',
74768: 'The Block', 'The Block AU', 'The Block All Stars', 'The Block All Stars AU', 'The Block AU All Stars',
174681: 'Scooby-Doo! Mystery Incorporated', 'Scooby Doo Mystery Incorporated',
249892: 'Extreme Chef', 'Extreme Chefs',
145541: 'The Marriage Ref', 'The Marriage Ref US',
250095: 'The Marriage Ref(UK)', 'The Marriage Ref UK',
168621: 'Melissa & Joey', 'Melissa and Joey',
100061: 'Undercover Boss', 'Undercover Boss UK',
140141: 'Undercover Boss (US)', 'Undercover Boss US',
250015: 'The Indestructibles', 'The Indestructibles US',
248261: 'National Terrorism Strike Force: San Diego: Sport Utility Vehicle', 'National Terrorism Strike Force: San Diego: SUV', 'NTSF:SD:SUV::', 'NTSF SD SUV',
249980: 'Restoration Home', 'Restoration Home UK',
250153: 'Top Design Australia', 'Top Design AU',
250331: 'Richard Hammond\'s Journey To...', 'Richard Hammonds Journey To',
248503: 'The Hour (2011)', 'The Hour UK 2011', 'The Hour 2011',
81491: 'Big Brother After Dark'. 'Big Brother US After Dark', 'Big Brother After Dark US',
196351: 'T.U.F.F. Puppy', 'TUFF Puppy',
250445: 'The Renovators', 'The Renovators AU',
193821: 'Iron Man 2010', 'Iron Man 2011',
220141: 'Wolverine', 'Wolverine 2011',
155201: 'Louie (2010)', 'Louie',
70760: 'Celebrity Big Brother', 'Celebrity Big Brother UK',
80522: 'Who Do You Think You Are?', 'Who Do You Think You Are UK',
74626: 'The X Factor', 'The X Factor UK',
75567: 'The Xtra Factor', 'The Xtra Factor UK',
152831: 'Adventure Time with Finn and Jake', 'Adventure Time',
75393: 'The X Factor (AU)', 'The X Factor Australia',
79565: 'The Real Hustle', 'The Real Hustle UK',
71998: 'Jimmy Kimmel Live', 'Jimmy Kimmel',
71470: 'Star Trek: The Next Generation', 'Star Trek TNG',
82918: 'Diners, Drive-ins and Dives', 'Diners Drive ins and Dives', 'Diners Driveins and Dives',
94551: 'Parenthood (2010)', 'Parenthood',
249708: 'The Car Show', 'The Car Show 2011',
198841: 'Undercover Boss (Au)', 'Undercover Boss Australia',
212171: 'My Little Pony: Friendship is Magic', 'My Little Pony Friendship is Magic',
118001: 'Beauty and the Geek Australia', 'Beauty and the Geek AU',
80159: 'Sanctuary', 'Sanctuary US',
82135: 'Gruen Planet', 'The Gruen Transfer',
78846: 'Shameless UK',
248834: 'Last Man Standing (2011)', 'Last Man Standing US', 'Last Man Standing',
249361: 'Boss (2011)', 'Boss',
95441: 'NCIS: Los Angeles', 'NCIS LA',
248835: 'Once Upon a Time (2011)', 'Once Upon a Time',
76119: 'NOVA', 'PBS NOVA',
251418: 'Frozen Planet', 'David Attenborough Frozen Planet', 'BBC Frozen Planet',
252319: 'Dragons\' Den: How To Win In The Den', 'How to win in the Den',
149101: 'A League of Their Own (2010)', 'A League of Their Own UK',
70994: 'MASH',
72164: 'The O.C.', 'The OC',
70327: 'Buffy the Vampire Slayer', 'Buffy',
70572: 'Little Rascals', 'The Little Rascals',
194261: 'PhoneShop', 'Phone Shop',
85508: 'QI XL', 'BBC QI XL', 'BBC QI XL (Quite Interesting)',
197001: 'Supernatural The Animation', 'Supernatural: TAS',
122281: 'Garrow\'s Law - Tales from the Old Bailey', 'Garrows Law',
249229: 'A.N.T Farm', 'ANT Farm',
78051: 'Never Mind the Buzzcocks', 'Never Mind the Buzzcocks UK',
208111: 'Gold Rush', 'Gold Rush: Alaska',
85168: 'How the Earth Was Made', 'History channel How the Earth Was Made',
71256: 'The Daily Show', 'The Daily Show with Jon Stewart',
253543: 'All American Muslim', 'All-American Muslim',
131791: 'Sci-Fi Science', 'Sci-Fi Science: Physics of the Impossible', 'Sci Fi Science Physics of the Impossible',
253931: 'Rob',
255045: 'The L.A. Complex', 'The LA Complex',
79212: 'The Dog Whisperer', 'Dog Whisperer',
248935: 'Touch (2012)', 'Touch',
254798: 'Stella (2012)', 'Stella UK,
247824: 'The Voice (US)', 'The Voice',
129261: 'Spartacus', 'Spartacus Blood and Sand', 'Spartacus Vengeance',
70870: 'The Real World Road Rules Challenge', 'The Challenge Cutthroat', 'The Challenge Battle Of The Exes', 'The Challenge Rivals', 'The Challenge Battle Of The Seasons 2',
80379: 'The Big Bang Theory', 'Big Bang Theory', 'TBBT'
248789: 'Smash (2012)', 'Smash',
79177: 'Life On Mars UK',
248836: 'The River',
165521: 'Girls Gone Wild The Search for the Hottest Girl in America',
81391: 'Wie is de mol?', 'Wie is de mol', 'widm',
72829: 'The Apprentice', 'The Apprentice US',
198861: 'Film 2013 with Claudia Winkleman', 'Film 2012 with Claudia Winkleman', 'Film 2011 with Claudia Winkleman',
79836: 'Dragon\'s Den (UK)',
74946: 'C.O.P.S.', 'C O P S',
253485: 'The Syndicate 2012', 'The Syndicate',
254112: 'Titanic 2012',
248841: 'Scandal US',
253323: 'Ninjago Masters Of Spinjitzu', 'LEGO NinjaGo: Masters of Spinjitzu',
73246: '30 Minute Meals', '30 Minute Meals with Rachel Ray',
256300: 'Richard Hammonds Crash Course', 'Richard Hammond\'s Crash Course',
71788: 'Superman: The Animated Series', 'Superman TAS',
88771: 'The Apprentice: You\'re Fired!', 'The Apprentice UK Youre Fired', 'The Apprentice UK Your Fired', 'The Apprentice Youre Fired',
83462: 'Castle (2009)', 'Castle', 'Castle 2009',
255693: 'Undercover Boss Canada', 'Undercover Boss CA',
79905: 'Tim and Eric Awesome Show', 'Tim and Erics Awesome Show Great Job',
192061: 'Young Justice', 'Young Justice Invasion',
92091: 'MasterChef Australia', 'MasterChef AU',
227161: 'Oprah Presents Master Class', 'Oprah\'s Master Class',
79040: 'Britains Next Top Model', 'Britain and Irelands Next Top Model',
248812: 'Dont Trust the Bitch in Apartment 23', 'Apartment 23',
74897: 'Hells Kitchen US', 'Hells Kitchen',
257645: 'Ultimate Spider-man', 'Ultimate Spiderman', 'Ultimate Spider man',
260206: 'Gordon Behind Bars', 'Gordon Ramsay Behind Bars',
77120: 'Aqua Teen Hunger Force', 'Aqua Unit Patrol Squad', 'Aqua Unit Patrol Squad 1', 'Aqua Something You Know Whatever',
250525: 'Hamish And Andys Gap Year', 'Hamish And Andys Euro Gap Year',
84133: 'Manhunters: Fugitive Task Force', 'Manhunters - Fugitive Task Force',
205901: 'Transformers Prime', 'Transformers Prime Beast Hunters',
248699: '24 Hours In A And E',
260165: 'Chasing UFOs', 'National Geographic Chasing UFOs',
253982: 'Common Law (2012)', 'Common Law',
75032: 'Cathouse The Series', 'CatHouse',
84312: 'Click (2000)', 'Click UK',
81346: 'Underbelly', 'The Underbelly Files', 'Underbelly Files', 'Underbelly A Tale of Two Cities', 'Underbelly Razor', 'Underbelly The Golden Mile', 'Underbelly Badness',
76237: 'Big Brother (Australia)', 'Big Brother AU',
82467: 'Eastbound & Down', 'Eastbound and Down',
82448: 'Project Runway Australia', 'Project Runway AU',
72663: 'Accused', 'Accused UK',
132591: '7 Days (2009)', '7 Days NZ',
122401: 'Discovery Channel Cool Stuff and How it works', 'Cool Stuff and How it works',
90621: 'Discovery Channel Sunrise Earth', 'Sunrise Earth',
80226: 'Inspector George Gently', 'George Gently',
261222: 'The Burn With Jeff Ross', 'Jeff Ross',
72231: 'Real Time with Bill Maher', 'Real Time With Bill Maher Plus Overtime',
75382: 'The Ultimate Fighter Live', 'The Ultimate Fighter Fridays', 'The Ultimate Fighter',
83268: 'Star Wars The Clone Wars 2008', 'Star Wars The Clone Wars',
261240: 'H+', 'H',
262368: 'Vikings (2012)', 'Vikings UK',
262353: 'Leaving', 'Leaving UK',
261202: 'DreamWorks Dragons: Riders of Berk', 'Dragons Riders of Berk', 'DreamWorks Dragons Riders of Berk',
251807: 'Green Lantern: The Animated Series', 'Green Lantern TAS', 'Green Lantern The Animated Series',
256204: '666 Park Avenue', 'Park Avenue',
113901: 'The Super Hero Squad Show', 'The Super Hero Squad',
122521: 'The Fresh Beat Band', 'Fresh Beat Band',
262927: 'Ian Hislop\'s Stiff Upper Lip', 'Ian Hislops Stiff Upper Lip An Emotional History Of Britain',
263002: 'Switch (2012)', 'Switch UK',
220441: 'R L Stines The Haunting Hour The Series', 'R L Stines The Haunting Hour', 'R.L. Stine\'s The Haunting Hour The Series',
78075: 'Beast Machines Transformers',
254067: 'DUI', 'D U I', 'D.U.I',
187351: 'This is England', 'This is England 86', 'This is England 88',
73599: 'Dark Shadows (1966)', 'Dark Shadows The Beginning',
76925: 'Dark Shadows The Revival Series 1991',
262787: 'Homefront UK',
79330: 'Jericho',
73545: 'Battlestar Galactica',
175101: 'Travel Channel Culture Shock',
90751: 'Travel Channel Planet Food',
199031: 'Click and Clack As the Wrench Turns',
253682: 'Project Runway Allstars', 'Project Runway All-Stars',
264141: 'Falcon',
73587: 'The Twilight Zone 1959', 'The Twilight Zone 1960', 'The Twilight Zone 1961', 'The Twilight Zone 1962', 'The Twilight Zone 1963', 'The Twilight Zone 1964',
80101: 'Harry And Paul',
263506: 'Jamies 16 Minute Meals',
252312: 'Jessie',
73641: 'King of Queens',
80665: 'The Next Iron Chef Redemption',
120431: 'Food Factory',
76107: 'Doctor Who Classic',
265145: 'David Attenboroughs Africa',
265373: 'David Attenboroughs Galapagos',
248962: 'Transporter The Series',
73178: 'Two Guys a Girl and a Pizza Place',
264679: 'National Geographic UFO Europe Untold Stories',
77780: 'G.I. Joe', 'GI Joe', G I Joe',
210771: 'Cake Boss Next Great Baker',
265252: 'MasterChef Australia The Professionals',
247381: 'Superscrimpers',
77398: 'X-Files',
261690: 'The Americans',
264450: 'Legit',
264535: 'Storage Wars NY',
259106: 'Emily Owens M D', 'Emily Owens MD',
76817: 'The Ponderosa',
257550: 'Bellator FC',
258773: 'Zero Hour US',
262980: 'House of Cards 2013',
79824: 'Naruto Shippuden',
178141: 'My Ghost Story',
74372: 'Blue Planet',
257804: 'Too Cute!',
88631: 'Krod Mandoon',
259669: 'DaVincis Demons',
72449: 'Stargate SG1',
264030: 'Avengers Assemble',
269552: 'Harry (2013)',
71663: 'Les Simpson','The Simpsons','Les Simpsons','Simpsons, The',
121361: 'Le trône de fer','Game of thrones',
[SickBeard]
host=localhost
port=8083
port=8081
username=
password=
web_root=
......
......@@ -17,7 +17,8 @@
# along with Sick Beard. If not, see <http://www.gnu.org/licenses/>.
import re
import os
import sickbeard
from sickbeard import helpers
from sickbeard import name_cache
from sickbeard import logger
......@@ -69,19 +70,22 @@ def retrieve_exceptions():
# exceptions are stored on github pages
url = 'http://midgetspy.github.com/sb_tvdb_scene_exceptions/exceptions.txt'
logger.log(u"Check scene exceptions update")
url_data = helpers.getURL(url)
if url_data is None:
excepfile= os.path.join(os.path.join(sickbeard.PROG_DIR,'Used_Files'),'exceptions.txt')
logger.log(u"Check scene exceptions file to update db")
f=open(excepfile,"r")
data = f.read()
if data is None:
# When urlData is None, trouble connecting to github
logger.log(u"Check scene exceptions update failed. Unable to get URL: " + url, logger.ERROR)
logger.log(u"Check scene exceptions update failed. Unable to get file: " + excepfile, logger.ERROR)
return
else:
# each exception is on one line with the format tvdb_id: 'show name 1', 'show name 2', etc
for cur_line in url_data.splitlines():
for cur_line in data.splitlines():
try:
cur_line = cur_line.decode('utf-8')
except:
cur_line = cur_line.decode('latin-1')
tvdb_id, sep, aliases = cur_line.partition(':') #@UnusedVariable
if not aliases:
......@@ -114,5 +118,7 @@ def retrieve_exceptions():
if changed_exceptions:
logger.log(u"Updated scene exceptions")
name_cache.clearCache()
f.close()
else:
logger.log(u"No scene exceptions update needed")
f.close()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment