dosage/dosagelib/plugins/old.py
2016-10-29 00:21:41 +02:00

381 lines
16 KiB
Python

# -*- coding: utf-8 -*-
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2016 Tobias Gruetzmacher
from __future__ import absolute_import, division, print_function
from ..scraper import Scraper
class Removed(Scraper):
REASONS = {
'jsh': 'Site is very JavaScript-heavy, writing a module would be' +
' very complicated.',
'del': 'Comic was removed from the web.',
'block': 'The comic site is blocking us.',
'unk': 'Comic was removed for an unknown reason.',
'brk': 'Comic navigation is broken.',
'mov': 'Comic moved to a new hoster and no new module was written.',
}
def __init__(self, name, reason='del'):
super(Removed, self).__init__(name)
self.reason = reason
def getDisabledReasons(self):
return {'rem-' + self.reason: self.REASONS[self.reason]}
@classmethod
def getmodules(cls):
return [
# Removed in 2.16
cls('AbleAndBaker'),
cls('AlsoBagels'),
cls('Antics'),
cls('Arcamax/BleekerTheRechargeableDog'),
cls('ASkeweredParadise'),
cls('BackwaterPlanet'),
cls('BigFatWhale'),
cls('Blip'),
cls('BoxerHockey'),
cls('BoyOnAStickAndSlither', 'jsh'),
cls('BrentalFloss'),
cls('BrentalFloss/FlossedInTime'),
cls('BrentalFloss/GuestComics'),
cls('BrightlyWound'),
cls('CheckerboardNightmare'),
cls('ComicFury/30years'),
cls('ComicFury/AAB'),
cls('ComicFury/AdventuresofMaggie'),
cls('ComicFury/Aether'),
cls('ComicFury/Afairtrade'),
cls('ComicFury/Afrodays'),
cls('ComicFury/Albinobros'),
cls('ComicFury/Alexanderandlucas'),
cls('ComicFury/Alittlebitofeverything'),
cls('ComicFury/Americanextremists'),
cls('ComicFury/AmericanNerd'),
cls('ComicFury/Amtheatre'),
cls('ComicFury/Angstcomic'),
cls('ComicFury/Applepine'),
cls('ComicFury/Atm'),
cls('ComicFury/Atomicmonkey'),
cls('ComicFury/Baseballcapsandtiaras'),
cls('ComicFury/BATB'),
cls('ComicFury/BetweenRounds'),
cls('ComicFury/Blessings'),
cls('ComicFury/BrokenReality'),
cls('ComicFury/BTTF'),
cls('ComicFury/Cannonadeofhogwash'),
cls('ComicFury/CatHero'),
cls('ComicFury/Chocolava'),
cls('ComicFury/ChristianHumberReloaded'),
cls('ComicFury/Cockeyed'),
cls('ComicFury/CoftheA'),
cls('ComicFury/CompanyMan'),
cls('ComicFury/Complicatedd'),
cls('ComicFury/Conplicated'),
cls('ComicFury/Crowbar'),
cls('ComicFury/Crowbars'),
cls('ComicFury/Curvyboneyosis'),
cls('ComicFury/Dandk'),
cls('ComicFury/Davidandtherobot'),
cls('ComicFury/DenizensAttentionComic'),
cls('ComicFury/Disturbingcomics'),
cls('ComicFury/Docapoc'),
cls('ComicFury/DucksMisery'),
cls('ComicFury/Elfcomic'),
cls('ComicFury/EMT'),
cls('ComicFury/EternityC'),
cls('ComicFury/Fathead'),
cls('ComicFury/Fexpression'),
cls('ComicFury/FireBorn2'),
cls('ComicFury/Foxtales'),
cls('ComicFury/Fpk'),
cls('ComicFury/Ghostassassin'),
cls('ComicFury/Gillimurphy'),
cls('ComicFury/Glomshire'),
cls('ComicFury/Goldrushdynllewcomics'),
cls('ComicFury/Grandline3point5'),
cls('ComicFury/Halloween2012'),
cls('ComicFury/Halloween2013'),
cls('ComicFury/HIRI'),
cls('ComicFury/Hitmen'),
cls('ComicFury/Honeyvenom'),
cls('ComicFury/Insanitycorp'),
cls('ComicFury/Inviziblecomixgroup'),
cls('ComicFury/Isb'),
cls('ComicFury/Its'),
cls('ComicFury/Jenfferscartoonphotomanipulaion'),
cls('ComicFury/Jenffersshow'),
cls('ComicFury/Jeremy'),
cls('ComicFury/Joysworldcomic'),
cls('ComicFury/Judgedred'),
cls('ComicFury/Jump2'),
cls('ComicFury/Kachingcomic'),
cls('ComicFury/Kazaandgwenna'),
cls('ComicFury/Kevinzombie'),
cls('ComicFury/Kindergardencrisis'),
cls('ComicFury/Kirahitogame'),
cls('ComicFury/Ladyspectra'),
cls('ComicFury/Lastcallcomic'),
cls('ComicFury/Lazy'),
cls('ComicFury/Lena'),
cls('ComicFury/Letitride'),
cls('ComicFury/Lola2'),
cls('ComicFury/LORDDARKE'),
cls('ComicFury/Lp'),
cls('ComicFury/LucidsDream'),
cls('ComicFury/Lvl30psy'),
cls('ComicFury/Maddog'),
cls('ComicFury/Magisa'),
cls('ComicFury/Midnightpeanutbutter'),
cls('ComicFury/Minarga'),
cls('ComicFury/MoizmadComix'),
cls('ComicFury/Moths'),
cls('ComicFury/MyHorribleSite'),
cls('ComicFury/Neighborscomic'),
cls('ComicFury/Nojetpack'),
cls('ComicFury/NoSongs'),
cls('ComicFury/Nostalgiaofeden'),
cls('ComicFury/Ocarinaoftim'),
cls('ComicFury/OldSchoolRasputinCatamite'),
cls('ComicFury/Pandemonium'),
cls('ComicFury/Paperstreamer'),
cls('ComicFury/Peepsnperks'),
cls('ComicFury/PersonaFTW'),
cls('ComicFury/Pilgrimenespanol'),
cls('ComicFury/Pilgrimsprogress'),
cls('ComicFury/PiratesLife'),
cls('ComicFury/PobrePucho'),
cls('ComicFury/Poussiere'),
cls('ComicFury/Pt'),
cls('ComicFury/Punch'),
cls('ComicFury/Rangerrandom'),
cls('ComicFury/Raspcat'),
cls('ComicFury/RealLifeTrips'),
cls('ComicFury/RIDDICKQLOSSTALES'),
cls('ComicFury/Romanjack'),
cls('ComicFury/RPS'),
cls('ComicFury/RPT'),
cls('ComicFury/Rvr'),
cls('ComicFury/Sarakleeyo'),
cls('ComicFury/Sawbladersblacknuzlocke'),
cls('ComicFury/Schizmatic'),
cls('ComicFury/Seconds'),
cls('ComicFury/Serengetti'),
cls('ComicFury/SHADOWQUEEN'),
cls('ComicFury/Shonenpunkremix'),
cls('ComicFury/Sinjetpack'),
cls('ComicFury/Spf1337'),
cls('ComicFury/Sscomic'),
cls('ComicFury/Teenagedragon'),
cls('ComicFury/Theashes'),
cls('ComicFury/TheButterflyEffect'),
cls('ComicFury/Thecrease'),
cls('ComicFury/TheGuardiansOfGrey'),
cls('ComicFury/TwentyQuidAmusements'),
cls('ComicFury/Underscore'),
cls('ComicFury/ValtersRebellion'),
cls('ComicFury/Wowwithatwistdamaclesandkejallcomic'),
cls('ComicFury/YouAreNowEnteringAshburg'),
cls('ComicGenesis/CryHavoc'),
cls('ComicGenesis/SueosdelSur'),
cls('Commissioned'),
cls('CowboyJedi', 'brk'),
cls('Creators/BCinSpanish'),
cls('Creators/GirlsandSportsinSpanish'),
cls('Creators/RugratsinSpanish'),
cls('CtrlAltDel', 'block'),
cls('CtrlAltDel/Sillies', 'block'),
cls('DailyDose'),
cls('DeathToTheExtremist'),
cls('DoctorCat', 'brk'),
cls('Ellerbisms'),
cls('Eriadan'),
cls('EverydayBlues'),
cls('FeyWinds'),
cls('FilibusterCartoons'),
cls('FowlLanguage', 'block'),
cls('GoComics/AgentGates'),
cls('GoComics/BCEnEspaol'),
cls('GoComics/BenSargent'),
cls('GoComics/BillyAndCo'),
cls('GoComics/BlackboardDaze'),
cls('GoComics/Boogerbrain'),
cls('GoComics/BotBrothers'),
cls('GoComics/BrilliantMines'),
cls('GoComics/BuffaloChips'),
cls('GoComics/BuzzaWuzza'),
cls('GoComics/CafConLeche'),
cls('GoComics/Cortoons'),
cls('GoComics/EleriMaiHarrisCartoons'),
cls('GoComics/ElMundoDeBeakman'),
cls('GoComics/FrankBlunt'),
cls('GoComics/GoComicsontheRoad'),
cls('GoComics/HIP'),
cls('GoComics/HoodootheUnwiseOwl'),
cls('GoComics/JayAndBoneheadTheMunkysMrCowhide'),
cls('GoComics/JustPosted'),
cls('GoComics/KatetheGreat'),
cls('GoComics/Mac'),
cls('GoComics/McArroni'),
cls('GoComics/MidLifewAlan'),
cls('GoComics/Millennialhood'),
cls('GoComics/MrGigiAndTheSquid'),
cls('GoComics/Pi'),
cls('GoComics/PigtimesCartoon'),
cls('GoComics/RedMeat'),
cls('GoComics/RicigsToonTrivia'),
cls('GoComics/SantavsDracula'),
cls('GoComics/Scurvyville'),
cls('GoComics/TheAcerbicCaf'),
cls('GoComics/TheAdventuresofTeetyBallerina'),
cls('GoComics/TOWHOMITMAYCONCERN'),
cls('GoComics/Twaggies'),
cls('GoComics/YouCanWithBeakmanAndJax'),
cls('GoComics/ZacharyNixonJohnson'),
cls('GunnerkrigCourt'),
cls('HorribleVille'),
cls('KatzenfutterGeleespritzer'),
cls('KeenSpot/Adventurers', 'mov'),
cls('KeenSpot/AntiheroForHire', 'mov'),
cls('KillerKomics'),
cls('Lint'),
cls('LinuxComFridayFunnies'),
cls('NekkoAndJoruba'),
cls('NekoTheKitty'),
cls('NewAdventuresOfBobbin'),
cls('Nnewts'),
cls('OddFish'),
cls('OneQuestion'),
cls('OnTheFasttrack'),
cls('OrnerBoy'),
cls('PensAndTales/Evilish'),
cls('PensAndTales/FireflyCross'),
cls('PetiteSymphony/Djandora'),
cls('PetiteSymphony/Generation17'),
cls('PunksAndNerdsOld'),
cls('RedsPlanet'),
cls('SmackJeeves/AchievementStuck'),
cls('SmackJeeves/Allthatglitters'),
cls('SmackJeeves/AngelBeast'),
cls('SmackJeeves/BeyondTemptation'),
cls('SmackJeeves/Bloodyfairytale'),
cls('SmackJeeves/BLOT'),
cls('SmackJeeves/Captor'),
cls('SmackJeeves/ChaosTheory2005'),
cls('SmackJeeves/Debtsettlement'),
cls('SmackJeeves/DebtSettlement2OperationExtinction'),
cls('SmackJeeves/Destinationunknown'),
cls('SmackJeeves/DevilTrainee'),
cls('SmackJeeves/DevilTraineeSpanish'),
cls('SmackJeeves/ElfenLiedDifferences'),
cls('SmackJeeves/FeathersPI'),
cls('SmackJeeves/FireWire'),
cls('SmackJeeves/FrogKing'),
cls('SmackJeeves/FuckMyLife'),
cls('SmackJeeves/FurtherDowntheRabbitHole'),
cls('SmackJeeves/GATEKEEPER'),
cls('SmackJeeves/GearTheTakedown'),
cls('SmackJeeves/GraveImpressions'),
cls('SmackJeeves/GreenKirbyandabunchofotherpeopledoinstuff'),
cls('SmackJeeves/Harfang'),
cls('SmackJeeves/HotChocolate'),
cls('SmackJeeves/Ianua'),
cls('SmackJeeves/ImminentMoose'),
cls('SmackJeeves/InthePride'),
cls('SmackJeeves/Knife'),
cls('SmackJeeves/Kranburn'),
cls('SmackJeeves/LoveTwister'),
cls('SmackJeeves/MegaManiacs'),
cls('SmackJeeves/MewsDynasty'),
cls('SmackJeeves/MomthegamestorerippedusoffAGAIN'),
cls('SmackJeeves/MoonlitDawnAMythicalTale'),
cls('SmackJeeves/NihilWandasJourney'),
cls('SmackJeeves/OddContact'),
cls('SmackJeeves/OneFrameGags'),
cls('SmackJeeves/Plotlessnesses'),
cls('SmackJeeves/PRAGUERACE'),
cls('SmackJeeves/PumpkinFlower'),
cls('SmackJeeves/Razor'),
cls('SmackJeeves/SAKANA'),
cls('SmackJeeves/SerendipityAnEquestrianTale'),
cls('SmackJeeves/ShacklesInstallment02'),
cls('SmackJeeves/TechnicolorLondon'),
cls('SmackJeeves/TeKscloset'),
cls('SmackJeeves/TheAttackoftheRecoloursSeason1'),
cls('SmackJeeves/ThehumanBEing'),
cls('SmackJeeves/TheMewExperiment'),
cls('SmackJeeves/TheRandomObscureFairyTaleNoOnesEverReallyHeardOf'),
cls('SmackJeeves/TheSomewhereOther'),
cls('SmackJeeves/TitleUnrelated'),
cls('SmackJeeves/TotalPokemonIsland'),
cls('SmackJeeves/TrillyAndSilly'),
cls('SmackJeeves/VampireFetish'),
cls('SmackJeeves/WolfWolf'),
cls('SmackJeeves/WonderTheatre'),
cls('SnowFlakes'),
cls('StrawberryDeathCake'),
cls('Stubble'),
cls('SuburbanTribe'),
cls('TheOuterQuarter'),
cls('ThunderAndLightning'),
cls('TinyKittenTeeth'),
cls('TwoTwoOneFour'),
cls('WayfarersMoon'),
cls('WebcomicsNation/AgnesQuill'),
cls('WebcomicsNation/MyMuse'),
cls('WebcomicsNation/NekkoAndJoruba'),
cls('WhiteNinja'),
cls('WLP/ShadowChasers'),
cls('WotNow'),
]
class Renamed(Scraper):
MSG = 'Comic module was renamed to "%s", please rename the directory.'
count = 0
@classmethod
def counter(cls):
cls.count += 1
return cls.count
def __init__(self, name, newname):
super(Renamed, self).__init__(name)
self.newname = newname
self.i = self.counter()
def getDisabledReasons(self):
return {'ren-%i' % self.i: self.MSG % self.newname}
@classmethod
def getmodules(cls):
return (
# Renamed in 2.16
cls('1997', '1977'),
cls('ComicFury/Alya', 'ComicFury/AlyaTheLastChildOfLight'),
cls('ComicFury/Boatcrash', 'ComicFury/BoatcrashChronicles'),
cls('ComicFury/Crimsonpixel', 'ComicFury/CrimsonPixelComics'),
cls('ComicFury/Doublejump', 'ComicFury/DoubleJumpGameComics'),
cls('ComicFury/Elektroanthology', 'ComicFury/ElektrosComicAnthology'),
cls('ComicFury/ICanSeeYourFeels', 'ComicFury/SeeYourFeels'),
cls('ComicFury/MAGISAupdatesMonWedFri', 'ComicFury/MAGISAPARASAYOupdatesMonFri'),
cls('ComicFury/ThomasAndZachary', 'ComicFury/ThomasAndZacharyArchives'),
cls('ComicGenesis/TheLounge', 'KeenSpot/TheLounge'),
cls('Creators/ArchieinSpanish', 'Creators/ArchieSpanish'),
cls('Creators/HeathcliffinSpanish', 'Creators/HeathcliffSpanish'),
cls('Creators/TheWizardofIdinSpanish', 'Creators/WizardOfIdSpanish'),
cls('DarkWings', 'Eryl'),
cls('FoulLanguage', 'GoComics/FowlLanguage'),
cls('GoComics/BloomCounty2015', 'GoComics/BloomCounty2016'),
cls('KeenSpot/ElGoonishShive', 'ElGoonishShive'),
cls('KeenSpot/ElGoonishShiveNP', 'ElGoonishShiveNP'),
cls('KeenSpot/Newshounds', 'KeenSpot/InfinityRefugees'),
cls('KeenSpot/SinFest', 'SinFest'),
cls('KeenSpot/TheGodChild', 'GodChild'),
cls('Wulffmorgenthaler', 'WuMo'),
cls('ZebraGirl', 'ComicFury/ZebraGirl'),
)