How to use main_module method in tappy

Best Python code snippet using tappy_python

porn_handler.py

Source:porn_handler.py Github

copy

Full Screen

1# -*- coding: utf-8 -*-2# import sys3from os import path4from ..hidden.PornSites.ahme import AhMe, SunPorno5from ..hidden.PornSites.analpornvideosxxx import AnalPornVideosXXX6from ..hidden.PornSites.anyporn import AnyPorn, PervertSluts, Fapster, HellPorno, AlphaPorno, XBabe, \7 BravoPorn, HellMoms, MadThumbs, Sex3, CrocoTube, \8 PornFd, PornBimbo, BoundHub, AdultCartoons, MoviesAnd9from ..hidden.PornSites.anyporn.watchmygfme import WatchMyGfMe10from ..hidden.PornSites.anyporn.pornodep import PornoDep11from ..hidden.PornSites.anyporn.watchmyexgf import WatchMyExGf12from ..hidden.PornSites.anyporn.watchmygftv import WatchMyGfTv13from ..hidden.PornSites.anyporn.anysex import AnySex14from ..hidden.PornSites.anyporn.slutload import SlutLoad15from ..hidden.PornSites.anyporn.xozilla import Xozilla16from ..hidden.PornSites.anyporn.vqtube import VQTube17from ..hidden.PornSites.anyporn.bravoteens import BravoTeens18from ..hidden.PornSites.anyporn.punishbang import PunishBang19from ..hidden.PornSites.anyporn.deviants import Deviants20from ..hidden.PornSites.anyporn.interracial import Interracial21from ..hidden.PornSites.anyporn.porn7 import Porn722from ..hidden.PornSites.anyporn.camuploads import CamUploads23from ..hidden.PornSites.anyporn.ebony8 import Ebony824from ..hidden.PornSites.anyporn.mrdeepfake import MrDeepFake25from ..hidden.PornSites.anyporn.anonv import AnonV26from ..hidden.PornSites.anyporn.camvideostv import CamVideosTv27from ..hidden.PornSites.anyporn.eroclips import EroClips28from ..hidden.PornSites.anyporn.zerodaysporn import ZeroDaysPorn29from ..hidden.PornSites.anyporn.zedporn import ZedPorn30from ..hidden.PornSites.anyporn.tropictube import TropicTube31from ..hidden.PornSites.anyporn.pornplus import PornPlus32from ..hidden.PornSites.anyporn.xcum import XCum33from ..hidden.PornSites.anyporn.tubewolf import TubeWolf34from ..hidden.PornSites.anyporn.magatubexxx import MegaTubeXXX35from ..hidden.PornSites.anyporn.pornrewind import PornRewind36from ..hidden.PornSites.anyporn.analdin import Analdin37from ..hidden.PornSites.asspoint import LesbianPornVideos38from ..hidden.PornSites.asspoint.xjizz import XJizz39from ..hidden.PornSites.asspoint.movietitan import MovieTitan40from ..hidden.PornSites.asspoint.movieshark import MovieShark41from ..hidden.PornSites.asspoint.mobilepornvideos import MobilePornMovies42from ..hidden.PornSites.asspoint.suzisporn import SuzisPorn43from ..hidden.PornSites.asspoint.youngporno import YoungPorno44from ..hidden.PornSites.asspoint.porntitan import PornTitan45from ..hidden.PornSites.asspoint.hoodtube import HoodTube46from ..hidden.PornSites.asspoint.teenieporn import TeeniePorn47from ..hidden.PornSites.asspoint.sexoasis import SexOasis48from ..hidden.PornSites.asspoint.cartoonpornvideos import CartoonPornVideos49from ..hidden.PornSites.asspoint.youngpornvideos import YoungPornVideos50from ..hidden.PornSites.asspoint.porntv import PornTV51from ..hidden.PornSites.asspoint.ghettotube import GhettoTube52from ..hidden.PornSites.asspoint.analpornvideos import AnalPornVideos53from ..hidden.PornSites.asspoint.asianpornvideos import AsianPornVideos54from ..hidden.PornSites.asspoint.asspoint import AssPoint55from ..hidden.PornSites.beeg import Beeg56from ..hidden.PornSites.cliphunter import ClipHunter57from ..hidden.PornSites.collectionofbestporn import CollectionOfBestPorn58from ..hidden.PornSites.cumlouder import CumLouder59from ..hidden.PornSites.cumngo import CumNGo60from ..hidden.PornSites.dachix import DaChix, DeviantClip61from ..hidden.PornSites.dachix.dagay import DaGay62from ..hidden.PornSites.draftsex import DraftSex63from ..hidden.PornSites.drtuber import DrTuber64from ..hidden.PornSites.eporner import EPorner65from ..hidden.PornSites.extremetube import SpankWire66from ..hidden.PornSites.extremetube.extremetube import ExtremeTube67from ..hidden.PornSites.faapy import Faapy68from ..hidden.PornSites.fapbraze import FapBraze69from ..hidden.PornSites.fapbraze.freehdinterracialporn import FreeHDInterracialPorn70from ..hidden.PornSites.fakings import FakingsTV71from ..hidden.PornSites.fetishpapa import AShemaleTube72from ..hidden.PornSites.fetishpapa.boyfriendtv import BoyfriendTV73from ..hidden.PornSites.fetishpapa.pornoxo import Pornoxo74from ..hidden.PornSites.fetishpapa.fetishpapa import FetishPapa75from ..hidden.PornSites.freeones import FreeOnes76from ..hidden.PornSites.goforporn import GoForPorn77from ..hidden.PornSites.gotporn import PornHD78from ..hidden.PornSites.gotporn.pornrox import PornRox79from ..hidden.PornSites.gotporn.pinflix import PinFlix80from ..hidden.PornSites.gotporn.gotporn import GotPorn81from ..hidden.PornSites.hdtubeporn import HDTubePorn, ZBPorn82from ..hidden.PornSites.hdtubeporn.pornid import PornID83from ..hidden.PornSites.hdtubeporn.sexvid import SexVid84from ..hidden.PornSites.homemoviestube import HomeMoviesTube85from ..hidden.PornSites.hotgirlclub import HotGirlClub86from ..hidden.PornSites.hqporner import HQPorner87from ..hidden.PornSites.jizzbunker import JizzBunker, XXXDan88from ..hidden.PornSites.joysporn import JoysPorn89from ..hidden.PornSites.katestube import KatesTube, PornWhite, WankOz90from ..hidden.PornSites.katestube.sheshaft import SheShaft91from ..hidden.PornSites.katestube.fetishshrine import FetishShrine92from ..hidden.PornSites.katestube.pornicom import PorniCom93from ..hidden.PornSites.katestube.vikiporn import VikiPorn94from ..hidden.PornSites.katestube.sleazyneasy import SleazyNEasy95from ..hidden.PornSites.katestube.pervclips import PervClips96from ..hidden.PornSites.laidhub import PornXio97from ..hidden.PornSites.laidhub.eroxia import Eroxia98from ..hidden.PornSites.laidhub.stileproject import StileProject99from ..hidden.PornSites.laidhub.pornwatchers import PornWatchers100from ..hidden.PornSites.laidhub.pornrabbit import PornRabbit101from ..hidden.PornSites.laidhub.handjobhub import HandJobHub102from ..hidden.PornSites.laidhub.hypnotube import HypnoTube103from ..hidden.PornSites.laidhub.nudez import Nudez104from ..hidden.PornSites.laidhub.laidhub import LaidHub105from ..hidden.PornSites.letsjerk import LetsJerk106from ..hidden.PornSites.likuoo import Likuoo107from ..hidden.PornSites.lovehomeporn import LoveHomePorn108from ..hidden.PornSites.luxuretv import LuxureTV109from ..hidden.PornSites.motherless import MotherLess110from ..hidden.PornSites.netfapx import Netfapx111from ..hidden.PornSites.nubilefilmxxx import NubileFilmXXX112from ..hidden.PornSites.nubilefilmxxx.plusone8 import PlusOne8113from ..hidden.PornSites.okxxx import OkXXX114from ..hidden.PornSites.palmtube import PalmTube115from ..hidden.PornSites.paradisehill import ParadiseHill116from ..hidden.PornSites.perfectgirls import PerfectGirls117from ..hidden.PornSites.porn00 import Porn00118from ..hidden.PornSites.porn300 import Porn300119from ..hidden.PornSites.porndig import PornDig120from ..hidden.PornSites.porndoe import PornDoe121from ..hidden.PornSites.porngo import PornGo122from ..hidden.PornSites.porngo.xxxfiles import XXXFiles123from ..hidden.PornSites.pornhd8k import PornHDEightK124from ..hidden.PornSites.pornhub import PornHub125from ..hidden.PornSites.pornhub.tube8 import TubeEight126from ..hidden.PornSites.pornhub.youporn import YouPorn127from ..hidden.PornSites.pornhub.porndotcom import PornDotCom128from ..hidden.PornSites.pornktube import PornKy, PornKTube, RushPorn, TubeXXPorn129from ..hidden.PornSites.pornomovies import PornoMovies130from ..hidden.PornSites.porntrex import PornTrex, JAVBangers, CamWhoresBay131from ..hidden.PornSites.porntube import PornTube, PornerBros, Fux, FourTube132from ..hidden.PornSites.realgfporn import RealGfPorn133from ..hidden.PornSites.red_wap import RedWap134from ..hidden.PornSites.redtube import RedTube135from ..hidden.PornSites.sextvx import SexTvX136from ..hidden.PornSites.sexu import SexU137from ..hidden.PornSites.shesfreaky import ShesFreaky138from ..hidden.PornSites.spankbang import SpankBang139from ..hidden.PornSites.sxyprn import SexyPorn140from ..hidden.PornSites.taxi69 import Taxi69141from ..hidden.PornSites.three_movs import ThreeMovs142from ..hidden.PornSites.tnaflix import TnaFlix, MovieFap, EmpFlix143from ..hidden.PornSites.tubev import TubeV144from ..hidden.PornSites.txxx import Txxx, HClips, UPornia, HDZog, HotMovs, VoyeurHit, TubePornClassic, VJav, TheGay, \145 Shemalez146from ..hidden.PornSites.ultrahorny import UltraHorny147from ..hidden.PornSites.veporns import VePorns148from ..hidden.PornSites.vintagetube import VintageTube149from ..hidden.PornSites.vporn import VPorn150from ..hidden.PornSites.wankgalore import WankGalore151from ..hidden.PornSites.xfantazy import XFantazy152from ..hidden.PornSites.xhamster import XHamster153from ..hidden.PornSites.xnxx import Xnxx, XVideos154from ..hidden.PornSites.yes_porn_please import YesPornPleaseX, SayPornPlease155from ..hidden.PornSites.youjizz import YouJizz156class PornHandlerIndicator(object):157 def __init__(self):158 self.best = False159 self.second_best = False160 self.third_best = False161 self.gay = False162 self.shemale = False163 self.cartoon = False164 self.amateur = False165 self.anal = False166 self.lesbian = False167 self.interracial = False168 self.black = False169 self.asian = False170 self.teens = False171 self.mature = False172 self.vintage = False173 self.fetish = False174 self.deep_fake = False175 self.search = False176 self.database = False177class SourceHandler(object):178 source_range = range(-1, -2101, -1)179 def __init__(self, source_id, logo_dir):180 unsupported_dir = path.join(logo_dir, 'Unsupported')181 self.is_active = True182 self.flags = PornHandlerIndicator()183 if source_id == -1:184 self.title = 'PornHub'185 self.main_module = PornHub186 self.image = path.join(logo_dir, 'pornhub.png')187 elif source_id == -2:188 self.title = 'XVideos'189 self.main_module = XVideos190 self.image = path.join(logo_dir, 'xvideos.png')191 elif source_id == -3:192 self.title = 'XHamster'193 self.main_module = XHamster194 self.image = path.join(logo_dir, 'xhamster.png')195 elif source_id == -4:196 self.title = 'XNXX'197 self.main_module = Xnxx198 self.image = path.join(logo_dir, 'xnxx.png')199 elif source_id == -5:200 self.title = 'Beeg'201 self.main_module = Beeg202 self.image = path.join(logo_dir, 'beeg.png')203 elif source_id == -6:204 self.title = 'PornHD'205 self.main_module = PornHD206 self.image = path.join(logo_dir, 'pornhd.png')207 elif source_id == -7:208 self.title = 'HQPorner'209 self.main_module = HQPorner210 self.image = path.join(logo_dir, 'hqporner.png')211 elif source_id == -8:212 self.title = 'EPorner'213 self.main_module = EPorner214 self.image = path.join(logo_dir, 'eporner.png')215 elif source_id == -9:216 self.title = 'YourPorn'217 self.main_module = SexyPorn218 self.image = path.join(logo_dir, 'sexyporn.png')219 elif source_id == -10:220 self.title = 'SpankBang'221 self.main_module = SpankBang222 self.image = path.join(logo_dir, 'spankbang.png')223 elif source_id == -11:224 self.title = 'PornTrex'225 self.main_module = PornTrex226 self.image = path.join(logo_dir, 'porntrex.png')227 elif source_id == -12:228 self.title = 'YesPornPlease'229 self.main_module = YesPornPleaseX230 self.image = path.join(logo_dir, 'yespornplease.png')231 elif source_id == -13:232 self.title = 'DraftSex'233 self.main_module = DraftSex234 self.image = path.join(logo_dir, 'draftsex.png')235 elif source_id == -14:236 self.title = 'YouJizz'237 self.main_module = YouJizz238 self.image = path.join(logo_dir, 'youjizz.png')239 elif source_id == -15:240 self.title = 'MotherLess'241 self.main_module = MotherLess242 self.image = path.join(logo_dir, 'motherless.png')243 elif source_id == -16:244 self.title = 'RedTube'245 self.main_module = RedTube246 self.image = path.join(logo_dir, 'redtube.png')247 elif source_id == -17:248 self.title = 'YouPorn'249 self.main_module = YouPorn250 self.image = path.join(logo_dir, 'youporn.png')251 elif source_id == -18:252 self.title = 'vPorn'253 self.main_module = VPorn254 self.image = path.join(logo_dir, 'vporn.png')255 elif source_id == -19:256 self.title = 'Porn.com'257 self.main_module = PornDotCom258 self.image = path.join(logo_dir, 'porn_com.png')259 self.is_active = False260 self.flags.search = True261 elif source_id == -20:262 self.title = 'VePorns'263 self.main_module = VePorns264 self.image = path.join(logo_dir, 'veporn.png')265 elif source_id == -21:266 self.title = 'PornKTube'267 self.main_module = PornKTube268 self.image = path.join(logo_dir, 'pornktube.png')269 elif source_id == -22:270 self.title = 'GotPorn'271 self.main_module = GotPorn272 self.image = path.join(logo_dir, 'gotporn.png')273 elif source_id == -23:274 self.title = '4Tube'275 self.main_module = FourTube276 self.image = path.join(logo_dir, '4tube.png')277 elif source_id == -24:278 self.title = 'PornTube'279 self.main_module = PornTube280 self.image = path.join(logo_dir, 'PornTube.png')281 elif source_id == -25:282 self.title = '3Movs'283 self.main_module = ThreeMovs284 self.image = path.join(logo_dir, '3movs.png')285 elif source_id == -26:286 self.title = 'PornGo'287 self.main_module = PornGo288 self.image = path.join(logo_dir, 'porngo.png')289 elif source_id == -27:290 self.title = 'Tube8'291 self.main_module = TubeEight292 self.image = path.join(logo_dir, 'tube8.png')293 elif source_id == -28:294 self.title = 'CumLouder'295 self.main_module = CumLouder296 self.image = path.join(logo_dir, 'cumlouder.png')297 elif source_id == -29:298 self.title = 'Txxx'299 self.main_module = Txxx300 self.image = path.join(logo_dir, 'txxx.png')301 elif source_id == -30:302 self.title = 'TubXPorn'303 self.main_module = TubeXXPorn304 self.image = path.join(logo_dir, 'tubxporn.png')305 elif source_id == -31:306 self.title = 'PornDoe'307 self.main_module = PornDoe308 self.image = path.join(logo_dir, 'porndoe.png')309 elif source_id == -32:310 self.title = 'XXXFiles'311 self.main_module = XXXFiles312 self.image = path.join(logo_dir, 'xxxfiles.png')313 elif source_id == -33:314 self.title = 'TNAFlix'315 self.main_module = TnaFlix316 self.image = path.join(logo_dir, 'tnaflix.png')317 elif source_id == -34:318 self.title = 'PornDig'319 self.main_module = PornDig320 self.image = path.join(logo_dir, 'porndig.png')321 elif source_id == -35:322 # Not supported site, thus we return fake inactive result323 self.title = 'PornDish'324 self.main_module = None325 self.image = path.join(unsupported_dir, 'porndish.png')326 elif source_id == -36:327 # Not supported site, thus we return fake inactive result328 self.title = 'Porn4Days'329 self.main_module = None330 self.image = path.join(unsupported_dir, 'porn4days.png')331 elif source_id == -37:332 self.title = 'LaidHub'333 self.main_module = LaidHub334 self.image = path.join(logo_dir, 'laidhub.png')335 elif source_id == -38:336 # Not supported site, thus we return fake inactive result337 self.title = 'VePorn'338 self.main_module = None339 self.image = path.join(unsupported_dir, 'veporn.png')340 elif source_id == -39:341 self.title = 'ParadiseHill'342 self.main_module = ParadiseHill343 self.image = path.join(unsupported_dir, 'paradisehill.png')344 elif source_id == -40:345 self.title = 'PornHD8K'346 self.main_module = PornHDEightK347 self.image = path.join(logo_dir, 'pornhd8k.png')348 elif source_id == -41:349 self.title = 'LuxureTV'350 self.main_module = LuxureTV351 self.image = path.join(logo_dir, 'luxuretv.png')352 elif source_id == -42:353 self.title = 'PerfectGirls'354 self.main_module = PerfectGirls355 self.image = path.join(logo_dir, 'perfectgirls.png')356 elif source_id == -43:357 self.title = 'Porn300'358 self.main_module = Porn300359 self.image = path.join(logo_dir, 'porn300.png')360 elif source_id == -44:361 self.title = 'AnySex'362 self.main_module = AnySex363 self.image = path.join(logo_dir, 'anysex.png')364 elif source_id == -45:365 self.title = 'DrTuber'366 self.main_module = DrTuber367 self.image = path.join(logo_dir, 'drtuber.png')368 elif source_id == -46:369 self.title = 'Netfapx'370 self.main_module = Netfapx371 self.image = path.join(logo_dir, 'netfapx.png')372 elif source_id == -47:373 # Not supported site, thus we return fake inactive result374 self.title = 'XMovieswForYou'375 self.main_module = None376 self.image = path.join(unsupported_dir, 'xmoviesforyou.png')377 elif source_id == -48:378 self.title = 'LetsJerk'379 self.main_module = LetsJerk380 self.image = path.join(logo_dir, 'letsjerk.png')381 elif source_id == -49:382 self.title = 'Likuoo'383 self.main_module = Likuoo384 self.image = path.join(logo_dir, 'likuoo.png')385 elif source_id == -50:386 # Not supported site, thus we return fake inactive result387 self.title = 'PornoBae'388 self.main_module = None389 self.image = path.join(unsupported_dir, 'pornobae.png')390 elif source_id == -51:391 self.title = 'XXXStreams'392 self.main_module = None393 self.image = path.join(unsupported_dir, 'xxxstreams.png')394 elif source_id == -52:395 self.title = 'Porn00'396 self.main_module = Porn00397 self.image = path.join(logo_dir, 'porn00.png')398 elif source_id == -53:399 self.title = 'RushPorn'400 self.main_module = RushPorn401 self.image = path.join(logo_dir, 'rushporn.png')402 elif source_id == -54:403 self.title = 'PornKy'404 self.main_module = PornKy405 self.image = path.join(logo_dir, 'pornky.png')406 elif source_id == -55:407 self.title = 'JoysPorn'408 self.main_module = JoysPorn409 self.image = path.join(logo_dir, 'joysporn.png')410 elif source_id == -56:411 self.title = 'UltraHorny'412 self.main_module = UltraHorny413 self.image = path.join(logo_dir, 'ultrahorny.png')414 elif source_id == -57:415 self.title = 'WatchXXXFree'416 self.main_module = None417 self.image = path.join(unsupported_dir, 'watchxxxfree.png')418 elif source_id == -58:419 self.title = 'PlusOne8'420 self.main_module = PlusOne8421 self.image = path.join(logo_dir, 'plusone8.png')422 elif source_id == -59:423 self.title = 'FreeoMovie'424 self.main_module = None425 self.image = path.join(unsupported_dir, 'freeomovie.png')426 elif source_id == -60:427 self.title = 'AnyPorn'428 self.main_module = AnyPorn429 self.image = path.join(logo_dir, 'anyporn.png')430 elif source_id == -61:431 self.title = 'ClipHunter'432 self.main_module = ClipHunter433 self.image = path.join(logo_dir, 'cliphunter.png')434 elif source_id == -62:435 self.title = 'PornRewindpornr'436 self.main_module = PornRewind437 self.image = path.join(logo_dir, 'pornrewind.png')438 elif source_id == -63:439 self.title = 'VQTube'440 self.main_module = VQTube441 self.image = path.join(logo_dir, 'vqtube.png')442 elif source_id == -64:443 self.title = 'CollectionOfBestPorn'444 self.main_module = CollectionOfBestPorn445 self.image = path.join(logo_dir, 'collectionofbestporn.png')446 elif source_id == -65:447 self.title = 'PornHD6K'448 self.main_module = None449 self.image = path.join(unsupported_dir, 'pornhd6k.png')450 elif source_id == -66:451 self.title = 'XTapes'452 self.main_module = None453 self.image = path.join(unsupported_dir, 'xtapes.png')454 elif source_id == -67:455 self.title = 'Sweext'456 self.main_module = None457 self.image = path.join(unsupported_dir, 'sweext.png')458 elif source_id == -68:459 self.title = 'PervertSluts'460 self.main_module = PervertSluts461 self.image = path.join(logo_dir, 'pervertslut.png')462 elif source_id == -69:463 self.title = 'XkeezMovies'464 self.main_module = None465 self.image = path.join(unsupported_dir, 'xkeezmovies.png')466 elif source_id == -70:467 self.title = 'SexGalaxy'468 self.main_module = None469 self.image = path.join(unsupported_dir, 'sexgalaxy.png')470 elif source_id == -71:471 self.title = 'NetPornSex'472 self.main_module = None473 self.image = path.join(unsupported_dir, 'netpornsex.png')474 elif source_id == -72:475 self.title = 'Palimas'476 self.main_module = None477 self.image = path.join(unsupported_dir, 'palimas.png')478 elif source_id == -73:479 self.title = 'SexTvX'480 self.main_module = SexTvX481 self.image = path.join(logo_dir, 'sextvx.png')482 elif source_id == -74:483 self.title = 'HotGirlClub'484 self.main_module = HotGirlClub485 self.image = path.join(logo_dir, 'hotgirlclub.png')486 elif source_id == -75:487 self.title = 'SexU'488 self.main_module = SexU489 self.image = path.join(logo_dir, 'sexu.png')490 elif source_id == -76:491 self.title = 'YourDailyPornVideos'492 self.main_module = None493 self.image = None494 elif source_id == -77:495 self.title = 'PornoVideoHub'496 self.main_module = None497 self.image = path.join(unsupported_dir, 'pornovideohub.png')498 elif source_id == -78:499 self.title = 'YoungPornVideos'500 self.main_module = YoungPornVideos501 self.image = path.join(logo_dir, 'youngpornvideos.png')502 elif source_id == -79:503 self.title = 'PandaMovies'504 self.main_module = None505 self.image = path.join(unsupported_dir, 'pandamovies.png')506 elif source_id == -80:507 self.title = 'StramingPorn'508 self.main_module = None509 self.image = path.join(unsupported_dir, 'streamingporn.png')510 elif source_id == -81:511 self.title = 'XXXstreams.eu'512 self.main_module = None513 self.image = path.join(unsupported_dir, 'xxxstreams.eu.png')514 elif source_id == -82:515 self.title = 'FullXXXMovies'516 self.main_module = None517 self.image = path.join(unsupported_dir, 'fullxxxmovies.png')518 elif source_id == -83:519 self.title = 'Pornxbit'520 self.main_module = None521 self.image = path.join(unsupported_dir, 'pornxbit.png')522 elif source_id == -84:523 self.title = 'PussySpace'524 self.main_module = None525 self.image = path.join(unsupported_dir, 'pussyspace.png')526 elif source_id == -85:527 self.title = 'GameOfPorn'528 self.main_module = None529 self.image = path.join(unsupported_dir, 'gameofporn.jpg')530 elif source_id == -86:531 self.title = 'PornStreams'532 self.main_module = None533 self.image = path.join(unsupported_dir, 'pornstreams.png')534 elif source_id == -87:535 self.title = 'PornVibe'536 self.main_module = None537 self.image = path.join(unsupported_dir, 'pornvibe.png')538 elif source_id == -88:539 self.title = 'HD-EasyPorn'540 self.main_module = None541 self.image = path.join(unsupported_dir, 'hdeasyporn.png')542 elif source_id == -89:543 self.title = 'PalmTube'544 self.main_module = PalmTube545 self.image = path.join(logo_dir, 'palmtube.png')546 elif source_id == -90:547 self.title = 'FakingsTV'548 self.main_module = FakingsTV549 self.image = path.join(logo_dir, 'fakingstv.png')550 elif source_id == -91:551 self.title = 'VRPorn'552 self.main_module = None553 self.image = path.join(unsupported_dir, 'vrporn.png')554 elif source_id == -92:555 self.title = 'DVDTrailerTube'556 self.main_module = None557 self.image = path.join(unsupported_dir, 'dvdtrailertube.png')558 elif source_id == -93:559 self.title = 'EmpFlix'560 self.main_module = EmpFlix561 self.image = path.join(logo_dir, 'empflix.jpg')562 elif source_id == -94:563 self.title = 'Taxi69'564 self.main_module = Taxi69565 self.image = path.join(logo_dir, 'taxi69.png')566 elif source_id == -95:567 self.title = 'SlutLoad'568 self.main_module = SlutLoad569 self.image = path.join(logo_dir, 'slutload.png')570 elif source_id == -96:571 self.title = 'Fux'572 self.main_module = Fux573 self.image = path.join(logo_dir, 'fux.png')574 elif source_id == -97:575 self.title = 'MangoPorn'576 self.main_module = None577 self.image = path.join(unsupported_dir, 'mangoporn.png')578 elif source_id == -98:579 self.title = 'StreamPorn'580 self.main_module = None581 self.image = path.join(unsupported_dir, 'streamingporn.png')582 elif source_id == -99:583 self.title = 'JustSwallows'584 self.main_module = None585 self.image = path.join(unsupported_dir, 'justswallows.png')586 elif source_id == -100:587 self.title = '0DaysPorn'588 self.main_module = ZeroDaysPorn589 self.image = path.join(logo_dir, '0dayporn.png')590 elif source_id == -101:591 self.title = 'YourDailyPornMovies'592 self.main_module = None593 self.image = path.join(unsupported_dir, 'yourdailypornmovies.png')594 elif source_id == -102:595 self.title = 'CastingPornoTube'596 self.main_module = None597 self.image = path.join(unsupported_dir, 'Casting-porno-tube-logo.png')598 elif source_id == -103:599 self.title = 'SwingersPornFun'600 self.main_module = None601 self.image = path.join(unsupported_dir, 'swingerspornfun.png')602 elif source_id == -104:603 self.title = 'CumNGo'604 self.main_module = CumNGo605 self.image = path.join(logo_dir, 'cumngo.png')606 elif source_id == -105:607 self.title = 'PornoDep'608 self.main_module = PornoDep609 self.image = path.join(logo_dir, 'pornodep.png')610 elif source_id == -106:611 self.title = 'SayPornPlease'612 self.main_module = SayPornPlease613 self.image = path.join(logo_dir, 'saypornplease.png')614 # from here and on we use the rating of hall-of-fame page615 elif source_id == -201:616 self.title = 'SpankWire'617 self.main_module = SpankWire618 self.image = path.join(logo_dir, 'spankwire.png')619 elif source_id == -202:620 self.title = 'FreeHDInterracialPorn'621 self.main_module = FreeHDInterracialPorn622 self.image = path.join(logo_dir, 'freehdinterracialporn.png')623 self.flags.interracial = True624 elif source_id == -203:625 self.title = 'RedWap'626 self.main_module = RedWap627 self.image = path.join(logo_dir, 'redwap.jpg')628 elif source_id == -204:629 self.title = 'XXXBunker'630 self.main_module = None631 self.image = path.join(unsupported_dir, 'xxxbunker.png')632 elif source_id == -205:633 self.title = 'MadThumbs'634 self.main_module = MadThumbs635 self.image = path.join(logo_dir, 'madthumbs.png')636 elif source_id == -206:637 self.title = 'ZBPorn'638 self.main_module = ZBPorn639 self.image = path.join(logo_dir, 'zbporn.png')640 elif source_id == -207:641 self.title = 'Analdin'642 self.main_module = Analdin643 self.image = path.join(logo_dir, 'analdin.png')644 elif source_id == -208:645 self.title = 'SunPorno'646 self.main_module = SunPorno647 self.image = path.join(logo_dir, 'sunporno.png')648 elif source_id == -220:649 self.title = 'Pornoxo'650 self.main_module = Pornoxo651 self.image = path.join(logo_dir, 'pornoxo.jpg')652 elif source_id == -240:653 self.title = 'ExtremeTube'654 self.main_module = ExtremeTube655 self.image = path.join(logo_dir, 'extremetube.png')656 elif source_id == -250:657 self.title = 'UPornia'658 self.main_module = UPornia659 self.image = path.join(logo_dir, 'upornia.png')660 elif source_id == -270:661 self.title = 'Faapy'662 self.main_module = Faapy663 self.image = path.join(logo_dir, 'faapy.png')664 elif source_id == -280:665 self.title = 'HDZog'666 self.main_module = HDZog667 self.image = path.join(logo_dir, 'hdzog.png')668 elif source_id == -285:669 self.title = 'Xozilla'670 self.main_module = Xozilla671 self.image = path.join(logo_dir, 'xozilla.png')672 elif source_id == -290:673 self.title = 'PinFlix'674 self.main_module = PinFlix675 self.image = path.join(logo_dir, 'pinflix.png')676 elif source_id == -295:677 self.title = 'HandJobHub'678 self.main_module = HandJobHub679 self.image = path.join(logo_dir, 'handjobhub.png')680 elif source_id == -297:681 self.title = 'AnonV'682 self.main_module = AnonV683 self.image = path.join(logo_dir, 'anonv.png')684 # from here and on we use the rest (not cataloged) general sites685 elif source_id == -401:686 self.title = 'PornerBros'687 self.main_module = PornerBros688 self.image = path.join(logo_dir, 'pornerbros.png')689 elif source_id == -402:690 self.title = 'JizzBunker'691 self.main_module = JizzBunker692 self.image = path.join(logo_dir, 'jizzbunker.png')693 elif source_id == -403:694 self.title = 'WankGalore'695 self.main_module = WankGalore696 self.image = path.join(logo_dir, 'wankgalore.png')697 elif source_id == -404:698 self.title = 'PornoMovies'699 self.main_module = PornoMovies700 self.image = path.join(logo_dir, 'pornomovies.png')701 elif source_id == -405:702 self.title = 'NubileFilmXXX'703 self.main_module = NubileFilmXXX704 self.image = path.join(logo_dir, 'nubilefilmxxx.png')705 elif source_id == -406:706 self.title = 'HDTubePorn'707 self.main_module = HDTubePorn708 self.image = path.join(logo_dir, 'hdtubeporn.png')709 elif source_id == -407:710 self.title = 'GoForPorn'711 self.main_module = GoForPorn712 self.image = path.join(logo_dir, 'goforporn.png')713 elif source_id == -408:714 self.title = 'DaChix'715 self.main_module = DaChix716 self.image = path.join(logo_dir, 'dachix.png')717 elif source_id == -409:718 self.title = 'DeviantClip'719 self.main_module = DeviantClip720 self.image = path.join(logo_dir, 'deviantclip.png')721 self.flags.fetish = True722 elif source_id == -410:723 self.title = 'TubeV'724 self.main_module = TubeV725 self.image = path.join(logo_dir, 'tubev.png')726 elif source_id == -411:727 self.title = 'OkXXX'728 self.main_module = OkXXX729 self.image = path.join(logo_dir, 'okxxx.png')730 elif source_id == -412:731 self.title = 'SexyPorn'732 self.main_module = SexyPorn733 self.image = path.join(logo_dir, 'sexyporn.png')734 elif source_id == -413:735 self.title = 'XXXDan'736 self.main_module = XXXDan737 self.image = path.join(logo_dir, 'xxxdan.png')738 elif source_id == -414:739 self.title = 'AhMe'740 self.main_module = AhMe741 self.image = path.join(logo_dir, 'ahme.jpg')742 elif source_id == -415:743 self.title = 'Nudez'744 self.main_module = Nudez745 self.image = path.join(logo_dir, 'nudez.png')746 elif source_id == -416:747 self.title = 'FapBraze'748 self.main_module = FapBraze749 self.image = path.join(logo_dir, 'fapbraze.png')750 elif source_id == -417:751 self.title = 'PornXio'752 self.main_module = PornXio753 self.image = path.join(logo_dir, 'pornxio.png')754 elif source_id == -418:755 self.title = 'PornRabbit'756 self.main_module = PornRabbit757 self.image = path.join(logo_dir, 'pornrabbit.png')758 elif source_id == -419:759 self.title = 'SexVid'760 self.main_module = SexVid761 self.image = path.join(logo_dir, 'sexvid.png')762 elif source_id == -420:763 self.title = 'PornWatchers'764 self.main_module = PornWatchers765 self.image = path.join(logo_dir, 'pornwatchers.png')766 elif source_id == -421:767 self.title = 'StileProject'768 self.main_module = StileProject769 self.image = path.join(logo_dir, 'stileproject.png')770 elif source_id == -422:771 self.title = 'Eroxia'772 self.main_module = Eroxia773 self.image = path.join(logo_dir, 'eroxia.png')774 elif source_id == -423:775 self.title = 'PornTV'776 self.main_module = PornTV777 self.image = path.join(logo_dir, 'porntv.png')778 elif source_id == -424:779 self.title = 'SexOasis'780 self.main_module = SexOasis781 self.image = path.join(logo_dir, 'sexoasis.png')782 elif source_id == -425:783 self.title = 'PornTitan'784 self.main_module = PornTitan785 self.image = path.join(logo_dir, 'porntitan.png')786 elif source_id == -426:787 self.title = 'SuzisPorn'788 self.main_module = SuzisPorn789 self.image = path.join(logo_dir, 'suzisporn.png')790 elif source_id == -427:791 self.title = 'MobilePornMovies'792 self.main_module = MobilePornMovies793 self.image = path.join(logo_dir, 'mobilepornmovies.png')794 elif source_id == -428:795 self.title = 'MovieShark'796 self.main_module = MovieShark797 self.image = path.join(logo_dir, 'movieshark.png')798 elif source_id == -429:799 self.title = 'MovieTitan'800 self.main_module = MovieTitan801 self.image = path.join(logo_dir, 'movietitan.png')802 elif source_id == -430:803 self.title = 'XJizz'804 self.main_module = XJizz805 self.image = path.join(logo_dir, 'xjizz.png')806 elif source_id == -431:807 self.title = 'Fapster'808 self.main_module = Fapster809 self.image = path.join(logo_dir, 'fapster.png')810 elif source_id == -432:811 self.title = 'HellPorno'812 self.main_module = HellPorno813 self.image = path.join(logo_dir, 'hellporno.png')814 elif source_id == -433:815 self.title = 'AlphaPorno'816 self.main_module = AlphaPorno817 self.image = path.join(logo_dir, 'alphaporno.png')818 elif source_id == -434:819 self.title = 'TubeWolf'820 self.main_module = TubeWolf821 self.image = path.join(logo_dir, 'tubewolf.png')822 elif source_id == -435:823 self.title = 'XBabe'824 self.main_module = XBabe825 self.image = path.join(logo_dir, 'xbabe.png')826 elif source_id == -436:827 self.title = 'BravoPorn'828 self.main_module = BravoPorn829 self.image = path.join(logo_dir, 'bravoporn.png')830 elif source_id == -437:831 self.title = 'XCum'832 self.main_module = XCum833 self.image = path.join(logo_dir, 'xcum.png')834 elif source_id == -438:835 self.title = 'PornPlus'836 self.main_module = PornPlus837 self.image = path.join(logo_dir, 'pornplus.png')838 elif source_id == -439:839 self.title = 'MegaTubeXXX'840 self.main_module = MegaTubeXXX841 self.image = path.join(logo_dir, 'megatube.png')842 elif source_id == -440:843 self.title = 'Sex3'844 self.main_module = Sex3845 self.image = path.join(logo_dir, 'sex3.png')846 elif source_id == -441:847 self.title = 'CrocoTube'848 self.main_module = CrocoTube849 self.image = path.join(logo_dir, 'crocotube.png')850 elif source_id == -442:851 self.title = 'TropicTube'852 self.main_module = TropicTube853 self.image = path.join(logo_dir, 'tropictube.png')854 elif source_id == -443:855 self.title = 'EroClips'856 self.main_module = EroClips857 self.image = path.join(logo_dir, 'eroclips.png')858 elif source_id == -444:859 self.title = 'ZedPorn'860 self.main_module = ZedPorn861 self.image = path.join(logo_dir, 'zedporn.png')862 elif source_id == -445:863 self.title = 'Porn7'864 self.main_module = Porn7865 self.image = path.join(logo_dir, 'porn7.png')866 elif source_id == -446:867 self.title = 'MoviesAnd'868 self.main_module = MoviesAnd869 self.image = path.join(logo_dir, 'moviesand.png')870 elif source_id == -447:871 self.title = 'KatesTube'872 self.main_module = KatesTube873 self.image = path.join(logo_dir, 'katestube.png')874 elif source_id == -448:875 self.title = 'PervClips'876 self.main_module = PervClips877 self.image = path.join(logo_dir, 'pervclips.png')878 elif source_id == -449:879 self.title = 'PornWhite'880 self.main_module = PornWhite881 self.image = path.join(logo_dir, 'pornwhite.png')882 elif source_id == -450:883 self.title = 'SleazyNEasy'884 self.main_module = SleazyNEasy885 self.image = path.join(logo_dir, 'sleazyneasy.png')886 elif source_id == -451:887 self.title = 'VikiPorn'888 self.main_module = VikiPorn889 self.image = path.join(logo_dir, 'vikiporn.png')890 elif source_id == -452:891 self.title = 'WankOz'892 self.main_module = WankOz893 self.image = path.join(logo_dir, 'wankoz.png')894 elif source_id == -453:895 self.title = 'PorniCom'896 self.main_module = PorniCom897 self.image = path.join(logo_dir, 'pornicom.png')898 elif source_id == -454:899 self.title = 'MovieFap'900 self.main_module = MovieFap901 self.image = path.join(logo_dir, 'moviefap.png')902 elif source_id == -460:903 self.title = 'PornID'904 self.main_module = PornID905 self.image = path.join(logo_dir, 'pornid.png')906 elif source_id == -461:907 self.title = 'HotMovs'908 self.main_module = HotMovs909 self.image = path.join(logo_dir, 'hotmovs.png')910 elif source_id == -462:911 self.title = 'PornRox'912 self.main_module = PornRox913 self.image = path.join(logo_dir, 'pornrox.png')914 # Amateur sites915 elif source_id == -501:916 self.title = 'HomeMoviesTube'917 self.main_module = HomeMoviesTube918 self.image = path.join(logo_dir, 'homemoviestube.png')919 elif source_id == -502:920 self.title = 'EroProfile'921 self.main_module = None922 self.image = path.join(unsupported_dir, 'eroprofile.png')923 elif source_id == -503:924 self.title = 'HClips'925 self.main_module = HClips926 self.image = path.join(logo_dir, 'hclips.png')927 elif source_id == -504:928 self.title = 'XTube'929 self.main_module = None930 self.image = path.join(unsupported_dir, 'xtube.png')931 elif source_id == -505:932 self.title = 'CamWhores'933 self.main_module = None934 self.image = path.join(unsupported_dir, 'camwhores.png')935 elif source_id == -506:936 self.title = 'VoyuerHit'937 self.main_module = VoyeurHit938 self.image = path.join(logo_dir, 'voyeurhit.png')939 elif source_id == -511:940 self.title = 'CamWhoresBay'941 self.main_module = CamWhoresBay942 self.image = path.join(logo_dir, 'camwhorebay.png')943 elif source_id == -512:944 self.title = 'RealGfPorn'945 self.main_module = RealGfPorn946 self.image = path.join(logo_dir, 'realgfporn.png')947 elif source_id == -513:948 self.title = 'LoveHomePorn'949 self.main_module = LoveHomePorn950 self.image = path.join(logo_dir, 'lovehomeporn.png')951 elif source_id == -514:952 self.title = 'WatchMyGfMe'953 self.main_module = WatchMyGfMe954 self.image = path.join(logo_dir, 'watchmygfme.png')955 elif source_id == -515:956 self.title = 'WatchMyGfTv'957 self.main_module = WatchMyGfTv958 self.image = path.join(logo_dir, 'watchmygftv.png')959 elif source_id == -516:960 self.title = 'WatchMyExGf'961 self.main_module = WatchMyExGf962 self.image = path.join(logo_dir, 'watchmyexgf.png')963 elif source_id == -517:964 self.title = 'CamVideosTv'965 self.main_module = CamVideosTv966 self.image = path.join(logo_dir, 'camvideostv.png')967 elif source_id == -518:968 self.title = 'CamUploads'969 self.main_module = CamUploads970 self.image = path.join(logo_dir, 'camuploads.png')971 # Anal972 elif source_id == -620:973 self.title = 'AssPoint'974 self.main_module = AssPoint975 self.image = path.join(logo_dir, 'asspoint.png')976 elif source_id == -621:977 self.title = 'AnalPornVideos'978 self.main_module = AnalPornVideos979 self.image = path.join(logo_dir, 'analpornvideos.png')980 elif source_id == -622:981 self.title = 'AnalPornVideosXXX'982 self.main_module = AnalPornVideosXXX983 self.image = path.join(logo_dir, 'analpornvideosxxx.png')984 # Teens985 elif source_id == -720:986 self.title = 'TeeniePorn'987 self.main_module = TeeniePorn988 self.image = path.join(logo_dir, 'teenieporn.png')989 elif source_id == -721:990 self.title = 'YoungPorno'991 self.main_module = YoungPorno992 self.image = path.join(logo_dir, 'youngporno.png')993 elif source_id == -721:994 self.title = 'BravoTeens'995 self.main_module = BravoTeens996 self.image = path.join(logo_dir, 'bravoteens.png')997 # Mature998 elif source_id == -820:999 self.title = 'HellMoms'1000 self.main_module = HellMoms1001 self.image = path.join(logo_dir, 'hellmoms.png')1002 # DeepFake sites1003 elif source_id == -904:1004 self.title = 'MrDeepFake'1005 self.main_module = MrDeepFake1006 self.image = path.join(logo_dir, 'mrdeepfake.png')1007 # Interracial sites1008 elif source_id == -1030:1009 self.title = 'Interracial'1010 self.main_module = Interracial1011 self.image = path.join(logo_dir, 'interracial.png')1012 # Black sites1013 elif source_id == -1101:1014 self.title = 'ShesFreaky'1015 self.main_module = ShesFreaky1016 self.image = path.join(logo_dir, 'shesfreaky.png')1017 elif source_id == -1108:1018 self.title = 'GhettoTube'1019 self.main_module = GhettoTube1020 self.image = path.join(logo_dir, 'ghettotube.png')1021 elif source_id == -1150:1022 self.title = 'HoodTube'1023 self.main_module = HoodTube1024 self.image = path.join(logo_dir, 'hoodtube.png')1025 elif source_id == -1151:1026 self.title = 'Ebony8'1027 self.main_module = Ebony81028 self.image = path.join(logo_dir, 'ebony8.png')1029 # Asian sites1030 elif source_id == -1203:1031 self.title = 'VJav'1032 self.main_module = VJav1033 self.image = path.join(logo_dir, 'vjav.png')1034 elif source_id == -1205:1035 self.title = 'JAVBangers'1036 self.main_module = JAVBangers1037 self.image = path.join(logo_dir, 'javbangers.png')1038 elif source_id == -1250:1039 self.title = 'AsianPornVideos'1040 self.main_module = AsianPornVideos1041 self.image = path.join(logo_dir, 'asianpornmovies.png')1042 # Vintage sites1043 elif source_id == -1301:1044 self.title = 'TubePornClassic'1045 self.main_module = TubePornClassic1046 self.image = path.join(logo_dir, 'tubepornclassic.png')1047 elif source_id == -1320:1048 self.title = 'VintageTube'1049 self.main_module = VintageTube1050 self.image = path.join(logo_dir, 'vintagetube.png')1051 # Lesbian sites1052 elif source_id == -1430:1053 self.title = 'LesbianPornVideos'1054 self.main_module = LesbianPornVideos1055 self.image = path.join(logo_dir, 'lesbianpornvideos.png')1056 # Gay sites1057 elif source_id == -1520:1058 self.title = 'DaGay'1059 self.main_module = DaGay1060 self.image = path.join(logo_dir, 'dagay.png')1061 elif source_id == -1550:1062 self.title = 'TheGay'1063 self.main_module = TheGay1064 self.image = path.join(logo_dir, 'thegay.png')1065 elif source_id == -1551:1066 self.title = 'BoyfriendTV'1067 self.main_module = BoyfriendTV1068 self.image = path.join(logo_dir, 'boyfriendtv.png')1069 # Shemale sites1070 elif source_id == -1600:1071 self.title = 'AShemaleTube'1072 self.main_module = AShemaleTube1073 self.image = path.join(logo_dir, 'ashemaletube.png')1074 elif source_id == -1608:1075 self.title = 'Shemalez'1076 self.main_module = Shemalez1077 self.image = path.join(logo_dir, 'shemalez.png')1078 elif source_id == -1650:1079 self.title = 'SheShaft'1080 self.main_module = SheShaft1081 self.image = path.join(logo_dir, 'sheshaft.png')1082 # Cartoon sites1083 elif source_id == -1730:1084 self.title = 'CartoonPornVideos'1085 self.main_module = CartoonPornVideos1086 self.image = path.join(logo_dir, 'cartoonpornvideos.png')1087 elif source_id == -1731:1088 self.title = 'AdultCartoons'1089 self.main_module = AdultCartoons1090 self.image = path.join(logo_dir, 'adultcartoons.png')1091 # Fetish sites1092 elif source_id == -1802:1093 self.title = 'BoundHub'1094 self.main_module = BoundHub1095 self.image = path.join(logo_dir, 'boundhub.png')1096 elif source_id == -1807:1097 self.title = 'HypnoTube'1098 self.main_module = HypnoTube1099 self.image = path.join(logo_dir, 'hypnotube.png')1100 elif source_id == -1814:1101 self.title = 'PunishBang'1102 self.main_module = PunishBang1103 self.image = path.join(logo_dir, 'punishbang.png')1104 elif source_id == -1816:1105 self.title = 'PornBimbo'1106 self.main_module = PornBimbo1107 self.image = path.join(logo_dir, 'pornbimbo.png')1108 elif source_id == -1818:1109 self.title = 'PornFd'1110 self.main_module = PornFd1111 self.image = path.join(logo_dir, 'pornfd.png')1112 elif source_id == -1850:1113 self.title = 'FetishPapa'1114 self.main_module = FetishPapa1115 self.image = path.join(logo_dir, 'fetishpapa.png')1116 elif source_id == -1851:1117 self.title = 'Deviants'1118 self.main_module = Deviants1119 self.image = path.join(logo_dir, 'deviants.png')1120 elif source_id == -1852:1121 self.title = 'FetishShrine'1122 self.main_module = FetishShrine1123 self.image = path.join(logo_dir, 'fetishshrine.png')1124 # Search sites1125 elif source_id == -1920:1126 self.title = 'XFantazy'1127 self.main_module = XFantazy1128 self.image = path.join(logo_dir, 'xfantazy.png')1129 # Databases sites1130 elif source_id == -2001:1131 self.title = 'FreeOnes'1132 self.main_module = FreeOnes1133 self.image = path.join(logo_dir, 'freeones.png')1134 else:1135 raise ValueError('Wrong source type {s}'.format(s=source_id))1136 if self.main_module is None:1137 # Every not implemented module is inactive, but not visa-versa...1138 self.is_active = False1139 positive_source_id = -source_id1140 if positive_source_id in range(1, 201):1141 self.flags.best = True1142 elif positive_source_id in range(201, 401):1143 self.flags.second_best = True1144 elif positive_source_id in range(401, 501):1145 self.flags.third_best = True1146 elif positive_source_id in range(501, 601):1147 self.flags.amateur = True1148 elif positive_source_id in range(601, 701):1149 self.flags.anal = True1150 elif positive_source_id in range(701, 801):1151 self.flags.teens = True1152 elif positive_source_id in range(801, 901):1153 self.flags.mature = True1154 elif positive_source_id in range(901, 1001):1155 self.flags.deep_fake = True1156 elif positive_source_id in range(1001, 1101):1157 self.flags.interracial = True1158 elif positive_source_id in range(1101, 1201):1159 self.flags.black = True1160 elif positive_source_id in range(1201, 1301):1161 self.flags.asian = True1162 elif positive_source_id in range(1301, 1401):1163 self.flags.vintage = True1164 elif positive_source_id in range(1401, 1501):1165 self.flags.lesbian = True1166 elif positive_source_id in range(1501, 1601):1167 self.flags.gay = True1168 elif positive_source_id in range(1601, 1701):1169 self.flags.shemale = True1170 elif positive_source_id in range(1701, 1801):1171 self.flags.cartoon = True1172 elif positive_source_id in range(1801, 1901):1173 self.flags.fetish = True1174 elif positive_source_id in range(1901, 2001):1175 self.flags.search = True1176 elif positive_source_id in range(2001, 2101):1177 self.flags.database = True1178 self.handler_id = source_id...

Full Screen

Full Screen

main_test.py

Source:main_test.py Github

copy

Full Screen

1from test_files.set_parameters import change_param2from importlib import reload3import main as main_module4# całość5def run_test():6 input_data_test()7 reassign_test()8 fun_weights_test()9 sections_test()10 utime_test()11# grupy testów12def input_data_test():13 input_data1()14 input_data2()15 input_data3()16 input_data4()17def reassign_test():18 # ignore_test()19 #20 # reconstruction_test()21 # reconstruction_fail1_test()22 # reconstruction_fail2_test()23 # reconstruction_step1_test()24 # reconstruction_step2_test()25 backtracking_test()26 backtracking_fail1_test()27 backtracking_fail2_test()28 backtracking_step1_test()29 backtracking_step2_test()30 # replacing_test() # nie działa31 # replacing_fail1_test()32 # replacing_fail2_test()33def sections_test():34 sections1()35 sections2()36def fun_weights_test():37 FD_domination_test()38 FO_domination_test()39 FP_domination_test()40 FR_domination_test()41def fun_weights_test2():42 FD_sub_test()43 FO_sub_test()44 FP_sub_test()45 FR_sub_test()46def utime_test():47 utime1()48 utime2()49# pojedyncze testy50def ignore_test():51 change_param(rooms="sample data/sale_reassign.csv",52 groups="sample data/grupy_reassign.csv",53 lecturers="sample data/prowadzacy_reassign.csv",54 classes="sample data/zajecia_reassign.csv",55 description="Test of ignoring of failed assignments",56 folder="ignore",57 report=2)58 global main_module59 main_module = reload(main_module)60 main_func = main_module.main61 main_func()62def replacing_test():63 change_param(rooms="sample data/sale_reassign.csv",64 groups="sample data/grupy_reassign.csv",65 lecturers="sample data/prowadzacy_reassign.csv",66 classes="sample data/zajecia_reassign.csv",67 reassign="replace",68 description="Test of replacing method of reassignment",69 folder="replace",70 report=2)71 global main_module72 main_module = reload(main_module)73 main_func = main_module.main74 main_func()75def replacing_fail1_test():76 change_param(rooms="sample data/sale_reassign.csv",77 groups="sample data/grupy_reassign.csv",78 lecturers="sample data/prowadzacy_reassign.csv",79 classes="sample data/zajecia_reassign.csv",80 reassign="replacing",81 max_fail=1,82 description="Test of replacing method of reassignment, max_fail reduced",83 folder="replf1",84 report=2)85 global main_module86 main_module = reload(main_module)87 main_func = main_module.main88 main_func()89def replacing_fail2_test():90 change_param(rooms="sample data/sale_reassign.csv",91 groups="sample data/grupy_reassign.csv",92 lecturers="sample data/prowadzacy_reassign.csv",93 classes="sample data/zajecia_reassign.csv",94 reassign="replacing",95 max_fail=5,96 description="Test of replacing method of reassignment, max_fail increased",97 folder="replf2",98 report=2)99 global main_module100 main_module = reload(main_module)101 main_func = main_module.main102 main_func()103def reconstruction_test():104 change_param(rooms="sample data/sale_reassign.csv",105 groups="sample data/grupy_reassign.csv",106 lecturers="sample data/prowadzacy_reassign.csv",107 classes="sample data/zajecia_reassign.csv",108 reassign="reconstruction",109 description="Test of reconstruction method of reassignment",110 folder="recons",111 report=2)112 global main_module113 main_module = reload(main_module)114 main_func = main_module.main115 main_func()116def reconstruction_fail1_test():117 change_param(rooms="sample data/sale_reassign.csv",118 groups="sample data/grupy_reassign.csv",119 lecturers="sample data/prowadzacy_reassign.csv",120 classes="sample data/zajecia_reassign.csv",121 reassign="reconstruction",122 max_fail=1,123 description="Test of reconstruction method of reassignment, max_fail reduced",124 folder="reconsf1",125 report=2)126 global main_module127 main_module = reload(main_module)128 main_func = main_module.main129 main_func()130def reconstruction_fail2_test():131 change_param(rooms="sample data/sale_reassign.csv",132 groups="sample data/grupy_reassign.csv",133 lecturers="sample data/prowadzacy_reassign.csv",134 classes="sample data/zajecia_reassign.csv",135 reassign="reconstruction",136 max_fail=5,137 description="Test of reconstruction method of reassignment, max_fail increased",138 folder="reconsf2",139 report=2)140 global main_module141 main_module = reload(main_module)142 main_func = main_module.main143 main_func()144def reconstruction_step1_test():145 change_param(rooms="sample data/sale_reassign.csv",146 groups="sample data/grupy_reassign.csv",147 lecturers="sample data/prowadzacy_reassign.csv",148 classes="sample data/zajecia_reassign.csv",149 reassign="reconstruction",150 step=3,151 description="Test of reconstruction method of reassignment, step reduced",152 folder="reconss1",153 report=2)154 global main_module155 main_module = reload(main_module)156 main_func = main_module.main157 main_func()158def reconstruction_step2_test():159 change_param(rooms="sample data/sale_reassign.csv",160 groups="sample data/grupy_reassign.csv",161 lecturers="sample data/prowadzacy_reassign.csv",162 classes="sample data/zajecia_reassign.csv",163 reassign="reconstruction",164 step=30,165 description="Test of reconstruction method of reassignment, step increased",166 folder="reconss2",167 report=2)168 global main_module169 main_module = reload(main_module)170 main_func = main_module.main171 main_func()172def backtracking_test():173 change_param(rooms="sample data/sale_reassign.csv",174 groups="sample data/grupy_reassign.csv",175 lecturers="sample data/prowadzacy_reassign.csv",176 classes="sample data/zajecia_reassign.csv",177 description="Test of backtracking method of reassignment",178 reassign="backtracking",179 folder="back",180 report=2)181 global main_module182 main_module = reload(main_module)183 main_func = main_module.main184 main_func()185def backtracking_fail1_test():186 change_param(rooms="sample data/sale_reassign.csv",187 groups="sample data/grupy_reassign.csv",188 lecturers="sample data/prowadzacy_reassign.csv",189 classes="sample data/zajecia_reassign.csv",190 reassign="backtracking",191 max_fail=1,192 description="Test of backtracking method of reassignment, max_fail reduced",193 folder="backf1",194 report=2)195 global main_module196 main_module = reload(main_module)197 main_func = main_module.main198 main_func()199def backtracking_fail2_test():200 change_param(rooms="sample data/sale_reassign.csv",201 groups="sample data/grupy_reassign.csv",202 lecturers="sample data/prowadzacy_reassign.csv",203 classes="sample data/zajecia_reassign.csv",204 reassign="backtracking",205 max_fail=5,206 description="Test of backtracking method of reassignment, max_fail increased",207 folder="backf2",208 report=2)209 global main_module210 main_module = reload(main_module)211 main_func = main_module.main212 main_func()213def backtracking_step1_test():214 change_param(rooms="sample data/sale_reassign.csv",215 groups="sample data/grupy_reassign.csv",216 lecturers="sample data/prowadzacy_reassign.csv",217 classes="sample data/zajecia_reassign.csv",218 reassign="backtracking",219 step=3,220 description="Test of backtracking method of reassignment, step reduced",221 folder="backs1",222 report=2)223 global main_module224 main_module = reload(main_module)225 main_func = main_module.main226 main_func()227def backtracking_step2_test():228 change_param(rooms="sample data/sale_reassign.csv",229 groups="sample data/grupy_reassign.csv",230 lecturers="sample data/prowadzacy_reassign.csv",231 classes="sample data/zajecia_reassign.csv",232 reassign="backtracking",233 step=30,234 description="Test of backtracking method of reassignment, step increased",235 folder="backs2",236 report=2)237 global main_module238 main_module = reload(main_module)239 main_func = main_module.main240 main_func()241def sections1():242 change_param(sections=1, folder="section1", report=2, description="Test of section parameter (reduced)")243 global main_module244 main_module = reload(main_module)245 main_func = main_module.main246 main_func()247def sections2():248 change_param(sections=200, folder="section2", report=2, description="Test of section parameter (increased)")249 global main_module250 main_module = reload(main_module)251 main_func = main_module.main252 main_func()253def FO_domination_test():254 change_param(fun_weight=(2, 1, 1, 1), folder="domFO", report=2, description="Test of effect of domination of FO part")255 global main_module256 main_module = reload(main_module)257 main_func = main_module.main258 main_func()259def FP_domination_test():260 change_param(fun_weight=(1, 1, 2, 1), folder="domFP", report=2, description="Test of effect of domination of FP part")261 global main_module262 main_module = reload(main_module)263 main_func = main_module.main264 main_func()265def FD_domination_test():266 change_param(fun_weight=(1, 2, 1, 1), folder="domFD", report=2, description="Test of effect of domination of FD part")267 global main_module268 main_module = reload(main_module)269 main_func = main_module.main270 main_func()271def FR_domination_test():272 change_param(fun_weight=(1, 1, 1, 2), folder="domFR", report=2, description="Test of effect of domination of FR part")273 global main_module274 main_module = reload(main_module)275 main_func = main_module.main276 main_func()277def FO_sub_test():278 change_param(fun_weight=(1, 2, 2, 2), folder="subFO", report=1, description="Test of effect of submission of FO part")279 global main_module280 main_module = reload(main_module)281 main_func = main_module.main282 main_func()283def FP_sub_test():284 change_param(fun_weight=(2, 2, 1, 2), folder="subFP", report=1, description="Test of effect of submission of FP part")285 global main_module286 main_module = reload(main_module)287 main_func = main_module.main288 main_func()289def FD_sub_test():290 change_param(fun_weight=(2, 1, 2, 2), folder="subFD", report=1, description="Test of effect of submission of FD part")291 global main_module292 main_module = reload(main_module)293 main_func = main_module.main294 main_func()295def FR_sub_test():296 change_param(fun_weight=(2, 2, 2, 1), folder="subFR", report=1, description="Test of effect of submission of FR part")297 global main_module298 main_module = reload(main_module)299 main_func = main_module.main300 main_func()301def utime1():302 change_param(utime=5, folder="utime1", report=2, description="Test of time unit parameter (reduced)")303 global main_module304 main_module = reload(main_module)305 main_func = main_module.main306 main_func()307def utime2():308 change_param(utime=20, folder="utime2", report=2, description="Test of time unit parameter (increased)")309 global main_module310 main_module = reload(main_module)311 main_func = main_module.main312 main_func()313def input_data1():314 change_param(rooms="sample data/sale_test411.csv",315 groups="sample data/grupy_test411.csv",316 lecturers="sample data/prowadzacy_test411.csv",317 classes="sample data/zajecia_test411.csv",318 description="Problem prosty test 4.1.1",319 fun_weight=(2, 1, 2, 2),320 folder="input_data1")321 global main_module322 main_module = reload(main_module)323 main_func = main_module.main324 main_func()325def input_data2():326 change_param(rooms="sample data/sale_test412.csv",327 groups="sample data/grupy_test412.csv",328 lecturers="sample data/prowadzacy_test412.csv",329 classes="sample data/zajecia_test412.csv",330 description="Problem prosty test 4.1.2",331 folder="input_data2")332 global main_module333 main_module = reload(main_module)334 main_func = main_module.main335 main_func()336def input_data3():337 change_param(description="Problem rzeczywisty test 4.1.3",338 folder="input_data3")339 global main_module340 main_module = reload(main_module)341 main_func = main_module.main342 main_func()343def input_data4():344 change_param(rooms="sample data/sale_test414.csv",345 groups="sample data/grupy_test414.csv",346 lecturers="sample data/prowadzacy_test414.csv",347 classes="sample data/zajecia_test414.csv",348 description="Problem zlozony test 4.1.4",349 folder="input_data4")350 global main_module351 main_module = reload(main_module)352 main_func = main_module.main353 main_func()354if __name__ == "__main__":...

Full Screen

Full Screen

module_tests.py

Source:module_tests.py Github

copy

Full Screen

1import unittest2import vimdoc3from vimdoc.block import Block4from vimdoc import error5from vimdoc import module6class TestVimModule(unittest.TestCase):7 def test_section(self):8 plugin = module.VimPlugin('myplugin')9 main_module = module.Module('myplugin', plugin)10 intro = Block(vimdoc.SECTION)11 intro.Local(name='Introduction', id='intro')12 main_module.Merge(intro)13 main_module.Close()14 self.assertEqual([intro], list(main_module.Chunks()))15 def test_duplicate_section(self):16 plugin = module.VimPlugin('myplugin')17 main_module = module.Module('myplugin', plugin)18 intro = Block(vimdoc.SECTION)19 intro.Local(name='Introduction', id='intro')20 main_module.Merge(intro)21 intro2 = Block(vimdoc.SECTION)22 intro2.Local(name='Intro', id='intro')23 with self.assertRaises(error.DuplicateSection) as cm:24 main_module.Merge(intro2)25 self.assertEqual(('Duplicate section intro defined.',), cm.exception.args)26 def test_default_section_ordering(self):27 """Sections should be ordered according to documented built-in ordering."""28 plugin = module.VimPlugin('myplugin')29 main_module = module.Module('myplugin', plugin)30 intro = Block(vimdoc.SECTION)31 intro.Local(name='Introduction', id='intro')32 commands = Block(vimdoc.SECTION)33 commands.Local(name='Commands', id='commands')34 about = Block(vimdoc.SECTION)35 about.Local(name='About', id='about')36 # Merge in arbitrary order.37 main_module.Merge(commands)38 main_module.Merge(about)39 main_module.Merge(intro)40 main_module.Close()41 self.assertEqual([intro, commands, about], list(main_module.Chunks()))42 def test_manual_section_ordering(self):43 """Sections should be ordered according to explicitly configured order."""44 plugin = module.VimPlugin('myplugin')45 main_module = module.Module('myplugin', plugin)46 intro = Block(vimdoc.SECTION)47 intro.Local(name='Introduction', id='intro')48 # Configure explicit order.49 intro.Global(order=['commands', 'about', 'intro'])50 commands = Block(vimdoc.SECTION)51 commands.Local(name='Commands', id='commands')52 about = Block(vimdoc.SECTION)53 about.Local(name='About', id='about')54 # Merge in arbitrary order.55 main_module.Merge(commands)56 main_module.Merge(about)57 main_module.Merge(intro)58 main_module.Close()59 self.assertEqual([commands, about, intro], list(main_module.Chunks()))60 def test_child_sections(self):61 """Sections should be ordered after their parents."""62 plugin = module.VimPlugin('myplugin')63 main_module = module.Module('myplugin', plugin)64 first = Block(vimdoc.SECTION)65 first.Local(name='Section 1', id='first')66 # Configure explicit order.67 first.Global(order=['first', 'second', 'third'])68 second = Block(vimdoc.SECTION)69 second.Local(name='Section 2', id='second')70 third = Block(vimdoc.SECTION)71 third.Local(name='Section 3', id='third')72 child11 = Block(vimdoc.SECTION)73 child11.Local(name='child11', id='child11', parent_id='first')74 child12 = Block(vimdoc.SECTION)75 child12.Local(name='child12', id='child12', parent_id='first')76 child21 = Block(vimdoc.SECTION)77 child21.Local(name='child21', id='child21', parent_id='second')78 # Merge in arbitrary order.79 for m in [second, child12, third, child11, first, child21]:80 main_module.Merge(m)81 main_module.Close()82 self.assertEqual(83 [first, child11, child12, second, child21, third],84 list(main_module.Chunks()))85 def test_missing_parent(self):86 """Parent sections should exist."""87 plugin = module.VimPlugin('myplugin')88 main_module = module.Module('myplugin', plugin)89 first = Block(vimdoc.SECTION)90 first.Local(name='Section 1', id='first')91 second = Block(vimdoc.SECTION)92 second.Local(name='Section 2', id='second', parent_id='missing')93 main_module.Merge(first)94 main_module.Merge(second)95 with self.assertRaises(error.NoSuchParentSection) as cm:96 main_module.Close()97 expected = (98 'Section Section 2 has non-existent parent missing. '99 'Try setting the id of the parent section explicitly.')100 self.assertEqual((expected,), cm.exception.args)101 def test_ordered_child(self):102 """Child sections should not be included in @order."""103 plugin = module.VimPlugin('myplugin')104 main_module = module.Module('myplugin', plugin)105 first = Block(vimdoc.SECTION)106 first.Local(name='Section 1', id='first')107 second = Block(vimdoc.SECTION)108 second.Local(name='Section 2', id='second', parent_id='first')109 first.Global(order=['first', 'second'])110 main_module.Merge(first)111 main_module.Merge(second)112 with self.assertRaises(error.OrderedChildSections) as cm:113 main_module.Close()114 self.assertEqual(("Child section second included in ordering ['first', 'second'].",), cm.exception.args)115 def test_partial_ordering(self):116 """Always respect explicit order and prefer built-in ordering.117 Undeclared built-in sections will be inserted into explicit order according118 to default built-in ordering. The about section should come after custom119 sections unless explicitly ordered."""120 plugin = module.VimPlugin('myplugin')121 main_module = module.Module('myplugin', plugin)122 intro = Block(vimdoc.SECTION)123 intro.Local(name='Introduction', id='intro')124 # Configure explicit order.125 intro.Global(order=['custom1', 'intro', 'custom2'])126 commands = Block(vimdoc.SECTION)127 commands.Local(name='Commands', id='commands')128 about = Block(vimdoc.SECTION)129 about.Local(name='About', id='about')130 custom1 = Block(vimdoc.SECTION)131 custom1.Local(name='Custom1', id='custom1')132 custom2 = Block(vimdoc.SECTION)133 custom2.Local(name='Custom2', id='custom2')134 # Merge in arbitrary order.135 for section in [commands, custom2, about, intro, custom1]:136 main_module.Merge(section)137 main_module.Close()138 self.assertEqual([custom1, intro, commands, custom2, about],...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run tappy automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful