const upsert = require('../src/utils/upsert'); const studios = [ // ANALVIDS / LEGALPORNO { name: 'Giorgio Grandi', slug: 'giorgiograndi', url: 'https://www.analvids.com/studios/giorgio-grandi', parent: 'analvids', alias: [ 'gio', ], }, { name: 'Gonzo.com', slug: 'gonzocom', url: 'https://www.analvids.com/studios/gonzo_com', parent: 'analvids', alias: [ 'sz', ], }, { name: 'NRX-Studio', slug: 'nrxstudio', url: 'https://www.analvids.com/studios/nrx-studio', parent: 'analvids', alias: [ 'nrx', ], }, { name: 'Porn World', slug: 'pornworld', url: 'https://www.analvids.com/studios/porn-world', parent: 'analvids', }, { name: 'Anal Porn World', slug: 'analpornworld', url: 'https://www.analvids.com/studios/anal-porn-world', parent: 'analvids', }, { name: "Giorgio's Lab", slug: 'giorgioslab', url: 'https://www.analvids.com/studios/giorgio--s-lab', parent: 'analvids', alias: [ 'gl', ], }, { name: 'VK Studio', slug: 'vkstudio', url: 'https://www.analvids.com/studios/vk-studio', parent: 'analvids', alias: [ 'vk', ], }, { name: 'Busted T-Girls', slug: 'bustedtgirls', url: 'https://www.analvids.com/studios/busted-t-girls', parent: 'analvids', alias: [ 'btg', ], tags: [ 'transsexual', ], }, { name: 'Bang Bros', slug: 'bangbros', url: 'https://www.analvids.com/studios/bang-bros', parent: 'analvids', }, { name: 'Yummy estudio', slug: 'yummyestudio', url: 'https://www.analvids.com/studios/yummy-estudio', parent: 'analvids', alias: [ 'ye', ], }, { name: 'Angelo Godshack Original', slug: 'angelogodshackoriginal', url: 'https://www.analvids.com/studios/angelo-godshack-original', parent: 'analvids', }, { name: 'XfreaX', slug: 'xfreax', url: 'https://www.analvids.com/studios/xfreax', parent: 'analvids', }, { name: 'N F studio', slug: 'nfstudio', url: 'https://www.analvids.com/studios/nf-studio', parent: 'analvids', alias: [ 'nf', ], }, { name: 'Black in White', slug: 'blackinwhite', url: 'https://www.analvids.com/studios/black-in-white', parent: 'analvids', alias: [ 'biw', ], }, { name: 'LATIN TEENS productions', slug: 'latinteensproductions', url: 'https://www.analvids.com/studios/latin-teens-productions', parent: 'analvids', }, { name: 'Vira Gold Films', slug: 'viragoldfilms', url: 'https://www.analvids.com/studios/vira-gold-films', parent: 'analvids', }, { name: 'GGG BY JOHN THOMPSON', slug: 'gggbyjohnthompson', url: 'https://www.analvids.com/studios/ggg-by-john-thompson', parent: 'analvids', }, { name: 'Private', slug: 'private', url: 'https://www.analvids.com/studios/private', parent: 'analvids', }, { name: 'TheWonderToys Training Studio', slug: 'thewondertoystrainingstudio', url: 'https://www.analvids.com/studios/thewondertoys-training-studio', parent: 'analvids', }, { name: 'Natasha Teen Productions', slug: 'natashateenproductions', url: 'https://www.analvids.com/studios/natasha-teen-productions', parent: 'analvids', alias: [ 'nt', ], }, { name: 'Interracial Vision', slug: 'interracialvision', url: 'https://www.analvids.com/studios/interracial-vision', parent: 'analvids', alias: [ 'iv', ], }, { name: 'PISSING E ANAL FANTASY', slug: 'pissingeanalfantasy', url: 'https://www.analvids.com/studios/pissing-anal-fantasy', parent: 'analvids', }, { name: 'Rock Corp', slug: 'rockcorp', url: 'https://www.analvids.com/studios/rock-corp', parent: 'analvids', }, { name: 'Mambo Perv', slug: 'mamboperv', url: 'https://www.analvids.com/studios/mambo-perv', parent: 'analvids', }, { name: 'Stalker Prodz', slug: 'stalkerprodz', url: 'https://www.analvids.com/studios/stalker_prodz', parent: 'analvids', }, { name: 'American Anal', slug: 'americananal', url: 'https://www.analvids.com/studios/american-anal', parent: 'analvids', alias: [ 'aa', ], }, { name: 'LVT studio', slug: 'lvtstudio', url: 'https://www.analvids.com/studios/lvt-studio', parent: 'analvids', }, { name: 'FAPLEX', slug: 'faplex', url: 'https://www.analvids.com/studios/faplex', parent: 'analvids', }, { name: 'Toby Dick', slug: 'tobydick', url: 'https://www.analvids.com/studios/toby_dick', parent: 'analvids', }, { name: 'Sineplex SOS', slug: 'sineplexsos', url: 'https://www.analvids.com/studios/sineplex-sos', parent: 'analvids', alias: [ 'rs', ], }, { name: "Mr Anderson's Anal Academy ", slug: 'mrandersonsanalacademy', url: 'https://www.analvids.com/studios/mr-anderson--s-anal-academy', parent: 'analvids', }, { name: 'Only3x Network', slug: 'only3xnetwork', url: 'https://www.analvids.com/studios/only3x_network_store', parent: 'analvids', }, { name: 'Sineplex CZ', slug: 'sineplexcz', url: 'https://www.analvids.com/studios/sineplex-cz', parent: 'analvids', alias: [ 'sz', ], }, { name: 'Galla Studio', slug: 'gallastudio', url: 'https://www.analvids.com/studios/galla-studio', parent: 'analvids', }, { name: 'Rick Angel Studio', slug: 'rickangelstudio', url: 'https://www.analvids.com/studios/rick-angel-studio', parent: 'analvids', alias: [ 'ra', ], }, { name: 'Siswet Anal Ambassador', slug: 'siswetanalambassador', url: 'https://www.analvids.com/studios/siswet-anal-ambassador', parent: 'analvids', }, { name: 'BBC Master Joss Lescaf', slug: 'bbcmasterjosslescaf', url: 'https://www.analvids.com/studios/bbc-master', parent: 'analvids', }, { name: 'Anal Maniacs by Lady Dee', slug: 'analmaniacsbyladydee', url: 'https://www.analvids.com/studios/anal-maniacs-by-lady-dee', parent: 'analvids', }, { name: 'Freddy Gong ', slug: 'freddygong', url: 'https://www.analvids.com/studios/freddy_gong_', parent: 'analvids', }, { name: 'Rebel Rhyder Productions', slug: 'rebelrhyderproductions', url: 'https://www.analvids.com/studios/rebel_rhyder_production', parent: 'analvids', }, { name: 'RPSN Studio', slug: 'rpsnstudio', url: 'https://www.analvids.com/studios/rpsn-studio', parent: 'analvids', }, { name: 'StacyBloomStudio', slug: 'stacybloomstudio', url: 'https://www.analvids.com/studios/stacy-bloom-studio', parent: 'analvids', alias: [ 'sbs', ], }, { name: 'SamCanRam', slug: 'samcanram', url: 'https://www.analvids.com/studios/samcanram', parent: 'analvids', }, { name: 'Mamasita Savage', slug: 'mamasitasavage', url: 'https://www.analvids.com/studios/mamasita-savage', parent: 'analvids', alias: [ 'msv', ], }, { name: 'Private Black', slug: 'privateblack', url: 'https://www.analvids.com/studios/private-black', parent: 'analvids', }, { name: 'Studio PL', slug: 'studiopl', url: 'https://www.analvids.com/studios/studio_pl', parent: 'analvids', }, { name: 'ssnatashateen', slug: 'ssnatashateen', url: 'https://www.analvids.com/studios/ssnatashateen', parent: 'analvids', }, { name: 'Immorallive', slug: 'immorallive', url: 'https://www.analvids.com/studios/immorallive', parent: 'analvids', }, { name: 'Andy Casanova', slug: 'andycasanova', url: 'https://www.analvids.com/studios/andy-casanova', parent: 'analvids', }, { name: 'Adeline Lafouine Studio', slug: 'adelinelafouinestudio', url: 'https://www.analvids.com/studios/adeline-lafouine-studio', parent: 'analvids', alias: [ 'al', ], }, { name: 'Monika Fox', slug: 'monikafox', url: 'https://www.analvids.com/studios/monika_fox', parent: 'analvids', }, { name: 'GG', slug: 'gg', url: 'https://www.analvids.com/studios/gg', parent: 'analvids', }, { name: 'Kate Rich Studio', slug: 'katerichstudio', url: 'https://www.analvids.com/studios/kate-rich-studio', parent: 'analvids', alias: [ 'krs', ], }, { name: 'Porn Force', slug: 'pornforce', url: 'https://www.analvids.com/studios/porn-force', parent: 'analvids', }, { name: 'Lydia Black Studio', slug: 'lydiablackstudio', url: 'https://www.analvids.com/studios/lydia_black_', parent: 'analvids', }, { name: "Claudia's Clips", slug: 'claudiasclips', url: 'https://www.analvids.com/studios/claudia--s-clips', parent: 'analvids', alias: [ 'cm', ], }, { name: 'Sineplex Classic', slug: 'sineplexclassic', url: 'https://www.analvids.com/studios/sineplex-classic', parent: 'analvids', }, { name: 'Erika Korti Studio', slug: 'erikakortistudio', url: 'https://www.analvids.com/studios/erika_korti_studio', parent: 'analvids', }, { name: 'MLR production ', slug: 'mlrproduction', url: 'https://www.analvids.com/studios/mlr_production_', parent: 'analvids', }, { name: 'Mugur Porn', slug: 'mugurporn', url: 'https://www.analvids.com/studios/mugur_porn', parent: 'analvids', }, { name: 'Bad Bardot Club', slug: 'badbardotclub', url: 'https://www.analvids.com/studios/bad-bardot-club', parent: 'analvids', alias: [ 'bbc', ], }, { name: 'Mya Quinn Studio', slug: 'myaquinnstudio', url: 'https://www.analvids.com/studios/mya_quinn_studio', parent: 'analvids', }, { name: 'dreamtranny', slug: 'dreamtranny', url: 'https://www.analvids.com/studios/dreamtranny', parent: 'analvids', }, { name: 'Z-Filmz', slug: 'zfilmz', url: 'https://www.analvids.com/studios/z-films', parent: 'analvids', }, { name: 'Anal 4 her', slug: 'anal4her', url: 'https://www.analvids.com/studios/anal-4-her', parent: 'analvids', alias: [ 'af', 'anal forever', ], }, { name: 'Hentaied', slug: 'hentaied', url: 'https://www.analvids.com/studios/hentaied', parent: 'analvids', }, { name: 'Kinky Sex', slug: 'kinkysex', url: 'https://www.analvids.com/studios/kinky-sex', parent: 'analvids', alias: [ 'ks', ], }, { name: 'Briana Banderas Studio', slug: 'brianabanderasstudio', url: 'https://www.analvids.com/studios/briana-banderas-studio', parent: 'analvids', alias: [ 'brb', ], }, { name: 'analgonzo', slug: 'analgonzo', url: 'https://www.analvids.com/studios/analgonzo', parent: 'analvids', }, { name: 'dankreamer', slug: 'dankreamer', url: 'https://www.analvids.com/studios/dankreamer', parent: 'analvids', }, { name: 'cherryflowerxxx', slug: 'cherryflowerxxx', url: 'https://www.analvids.com/studios/cherryflowerxxx', parent: 'analvids', }, { name: 'Suzie Q Studio', slug: 'suzieqstudio', url: 'https://www.analvids.com/studios/suzie-q-studio', parent: 'analvids', }, { name: 'Trunk AC Studio', slug: 'trunkacstudio', url: 'https://www.analvids.com/studios/oliver_trunk_ac_studio', parent: 'analvids', }, { name: 'GothCharlotte', slug: 'gothcharlotte', url: 'https://www.analvids.com/studios/gothcharlotte', parent: 'analvids', }, { name: 'SpicyLab Production', slug: 'spicylabproduction', url: 'https://www.analvids.com/studios/spicy_lab_productio', parent: 'analvids', }, { name: 'MAX RAJOY SQUAD', slug: 'maxrajoysquad', url: 'https://www.analvids.com/studios/max-rajoy-squad', parent: 'analvids', alias: [ 'mrs', ], }, { name: 'Amor en equipo', slug: 'amorenequipo', url: 'https://www.analvids.com/studios/adara-love-studio', parent: 'analvids', }, { name: 'Eden does', slug: 'edendoes', url: 'https://www.analvids.com/studios/eden-does', parent: 'analvids', }, { name: 'Assablanca', slug: 'assablanca', url: 'https://www.analvids.com/studios/assablanca', parent: 'analvids', alias: [ 'ab', ], }, { name: 'Mr Anal', slug: 'mranal', url: 'https://www.analvids.com/studios/mr-anal', parent: 'analvids', alias: [ 'ma', ], }, { name: 'Cris Angelo', slug: 'crisangelo', url: 'https://www.analvids.com/studios/cris_angelo_-_bigdaddyproductions', parent: 'analvids', }, { name: 'Vince Karter ', slug: 'vincekarter', url: 'https://www.analvids.com/studios/vince_karter_', parent: 'analvids', }, { name: 'Pineapples Studio', slug: 'pineapplesstudio', url: 'https://www.analvids.com/studios/pineapple--s-test-kitchen', parent: 'analvids', }, { name: 'Bazinga', slug: 'bazinga', url: 'https://www.analvids.com/studios/bazinga', parent: 'analvids', }, { name: 'Harleen Van Hynten', slug: 'harleenvanhynten', url: 'https://www.analvids.com/studios/harleen-van-hynten-studio', parent: 'analvids', }, { name: 'Sweetyx', slug: 'sweetyx', url: 'https://www.analvids.com/studios/jean-marie-corda-studio', parent: 'analvids', }, { name: 'PanPorn', slug: 'panporn', url: 'https://www.analvids.com/studios/panporn-production', parent: 'analvids', }, { name: 'Alt Perversion', slug: 'altperversion', url: 'https://www.analvids.com/studios/alt_perversion', parent: 'analvids', }, { name: "Lutro's World", slug: 'lutrosworld', url: 'https://www.analvids.com/studios/lutro--s-world', parent: 'analvids', alias: [ 'lw', ], }, { name: 'Mixed studios', slug: 'mixedstudios', url: 'https://www.analvids.com/studios/mixed-studios', parent: 'analvids', alias: [ 'ms', ], }, { name: 'Lizzy Laynez Entertainment', slug: 'lizzylaynezentertainment', url: 'https://www.analvids.com/studios/lizzy-laynez-entertainment', parent: 'analvids', }, { name: 'Melina May', slug: 'melinamay', url: 'https://www.analvids.com/studios/melina_may', parent: 'analvids', }, { name: 'Outside the Studio', slug: 'outsidethestudio', url: 'https://www.analvids.com/studios/outside-the-studio', parent: 'analvids', alias: [ 'ots', ], }, { name: 'Alix Lynx', slug: 'alixlynx', url: 'https://www.analvids.com/studios/alix--s-dream-world', parent: 'analvids', }, { name: 'Argendana Official', slug: 'argendanaofficial', url: 'https://www.analvids.com/studios/argendana_official', parent: 'analvids', }, { name: "YumYum's Studio", slug: 'yumyumsstudio', url: 'https://www.analvids.com/studios/yumyum_s_studio', parent: 'analvids', }, { name: 'Culioneros', slug: 'culioneros', url: 'https://www.analvids.com/studios/culioneros', parent: 'analvids', }, { name: "Shinaryen's Pure Pleasure", slug: 'shinaryenspurepleasure', url: 'https://www.analvids.com/studios/shinaryen--s-pure-pleasure', parent: 'analvids', }, { name: 'johnpricexo', slug: 'johnpricexo', url: 'https://www.analvids.com/studios/johnpricexoxo', parent: 'analvids', }, { name: 'Lara De Santis studio', slug: 'laradesantisstudio', url: 'https://www.analvids.com/studios/lara-de-santis-studio', parent: 'analvids', alias: [ 'lds', ], }, { name: 'Cherry Aleksa ', slug: 'cherryaleksa', url: 'https://www.analvids.com/studios/cherry-aleksa-studio', parent: 'analvids', }, { name: 'First Gape', slug: 'firstgape', url: 'https://www.analvids.com/studios/first-gape', parent: 'analvids', alias: [ 'sal', ], }, { name: 'kaiiaeve', slug: 'kaiiaeve', url: 'https://www.analvids.com/studios/kaiiaeve', parent: 'analvids', }, { name: 'PossiblyNeighbours', slug: 'possiblyneighbours', url: 'https://www.analvids.com/studios/possibly-neighbours', parent: 'analvids', alias: [ 'pn', ], }, { name: 'Dorian Del Isla', slug: 'doriandelisla', url: 'https://www.analvids.com/studios/dorian_del_isla', parent: 'analvids', }, { name: 'Sarah Slave Studio', slug: 'sarahslavestudio', url: 'https://www.analvids.com/studios/sarah_slave_studio', parent: 'analvids', }, { name: 'Focus', slug: 'focus', url: 'https://www.analvids.com/studios/focus', parent: 'analvids', alias: [ 'fs', ], }, { name: 'No Rest For The Ass', slug: 'norestfortheass', url: 'https://www.analvids.com/studios/no-rest-for-the-ass', parent: 'analvids', alias: [ 'nr', ], }, { name: 'Atomic Porn Studio', slug: 'atomicpornstudio', url: 'https://www.analvids.com/studios/mlr_studio', parent: 'analvids', }, { name: 'Alexa Moore', slug: 'alexamoore', url: 'https://www.analvids.com/studios/alexa_moore', parent: 'analvids', }, { name: 'Jessae Rosae x Savory Father', slug: 'jessaerosaexsavoryfather', url: 'https://www.analvids.com/studios/jessae_rosae_x_savory_father', parent: 'analvids', }, { name: 'Proton Videos', slug: 'protonvideos', url: 'https://www.analvids.com/studios/proton-videos', parent: 'analvids', }, { name: 'Timea Bella Production', slug: 'timeabellaproduction', url: 'https://www.analvids.com/studios/timea-bella-production', parent: 'analvids', alias: [ 'tb', ], }, { name: 'Eros Mastery', slug: 'erosmastery', url: 'https://www.analvids.com/studios/eros_mastery', parent: 'analvids', }, { name: 'MaryWet', slug: 'marywet', url: 'https://www.analvids.com/studios/marywet', parent: 'analvids', alias: [ 'ots', ], }, { name: 'Cassie Del Isla', slug: 'cassiedelisla', url: 'https://www.analvids.com/studios/del-isla', parent: 'analvids', }, { name: 'DaddyEnjoy', slug: 'daddyenjoy', url: 'https://www.analvids.com/studios/daddyenjoy', parent: 'analvids', alias: [ 'de', ], }, { name: 'Gonzo in Brazil', slug: 'gonzoinbrazil', url: 'https://www.analvids.com/studios/gonzo-in-brazil', parent: 'analvids', alias: [ 'bz', ], }, { name: 'Private Castings', slug: 'privatecastings', url: 'https://www.analvids.com/studios/private-castings', parent: 'analvids', }, { name: 'XXXPawn', slug: 'xxxpawn', url: 'https://www.analvids.com/studios/xxxpawn', parent: 'analvids', }, { name: 'MyBangVan', slug: 'mybangvan', url: 'https://www.analvids.com/studios/mybangvan', parent: 'analvids', }, { name: 'Cherry on Top', slug: 'cherryontop', url: 'https://www.analvids.com/studios/cherry-on-top', parent: 'analvids', }, { name: 'Gaywire', slug: 'gaywire', url: 'https://www.analvids.com/studios/gaywire', parent: 'analvids', }, { name: 'College Rules', slug: 'collegerules', url: 'https://www.analvids.com/studios/college-rules', parent: 'analvids', }, { name: 'onlyjewelzblu Studio', slug: 'onlyjewelzblustudio', url: 'https://www.analvids.com/studios/onlyjewelzblu_studio', parent: 'analvids', }, { name: 'Kitty Blair', slug: 'kittyblair', url: 'https://www.analvids.com/studios/kitty-blair-studio', parent: 'analvids', }, { name: 'Queen Eugenia Studio', slug: 'queeneugeniastudio', url: 'https://www.analvids.com/studios/queen-eugenia-studio', parent: 'analvids', }, { name: 'Studio GD', slug: 'studiogd', url: 'https://www.analvids.com/studios/studio-dg', parent: 'analvids', }, { name: 'Tarra White', slug: 'tarrawhite', url: 'https://www.analvids.com/studios/tarra-white', parent: 'analvids', alias: [ 'tw', ], }, { name: 'Filthy Family', slug: 'filthyfamily', url: 'https://www.analvids.com/studios/filthy-family', parent: 'analvids', }, { name: 'CHERRYxLUCKY', slug: 'cherryxlucky', url: 'https://www.analvids.com/studios/cherryxlucky', parent: 'analvids', }, { name: 'Busty Adventures', slug: 'bustyadventures', url: 'https://www.analvids.com/studios/busty-adventures', parent: 'analvids', }, { name: 'Helena Moeller Studio', slug: 'helenamoellerstudio', url: 'https://www.analvids.com/studios/helena-moeller-studio', parent: 'analvids', alias: [ 'hms', ], }, { name: "man's cave", slug: 'manscave', url: 'https://www.analvids.com/studios/mancave', parent: 'analvids', }, { name: 'Jamie French Productions', slug: 'jamiefrenchproductions', url: 'https://www.analvids.com/studios/jamie_french_productions', parent: 'analvids', }, { name: 'Public Invasion', slug: 'publicinvasion', url: 'https://www.analvids.com/studios/public-invasion', parent: 'analvids', }, { name: 'Omar Galanti Productions', slug: 'omargalantiproductions', url: 'https://www.analvids.com/studios/omar-galanti-productions', parent: 'analvids', }, { name: 'InfiltrateProxy', slug: 'infiltrateproxy', url: 'https://www.analvids.com/studios/infiltrateproxy', parent: 'analvids', }, { name: 'All About Sweet Bunny', slug: 'allaboutsweetbunny', url: 'https://www.analvids.com/studios/all-about-sweet-bunny', parent: 'analvids', alias: [ 'swb', ], }, { name: 'Anal pantyhose addicts ', slug: 'analpantyhoseaddicts', url: 'https://www.analvids.com/studios/anal_pantyhose_addicts_', parent: 'analvids', }, { name: 'Nelly Kent Studio', slug: 'nellykentstudio', url: 'https://www.analvids.com/studios/nelly-kent-production', parent: 'analvids', }, { name: 'The Kriss Kiss Experience', slug: 'thekrisskissexperience', url: 'https://www.analvids.com/studios/the-kriss-kiss-experience', parent: 'analvids', }, { name: 'F Models', slug: 'fmodels', url: 'https://www.analvids.com/studios/f-models', parent: 'analvids', alias: [ 'fm', ], }, { name: 'Luna Sapphire ', slug: 'lunasapphire', url: 'https://www.analvids.com/studios/luna_sapphire_', parent: 'analvids', }, { name: 'Tiffany Leiddi ', slug: 'tiffanyleiddi', url: 'https://www.analvids.com/studios/tiffany_leiddi_', parent: 'analvids', }, { name: 'Blessexxx', slug: 'blessexxx', url: 'https://www.analvids.com/studios/blessexxx', parent: 'analvids', }, { name: 'CarryLight', slug: 'carrylight', url: 'https://www.analvids.com/studios/carrylight', parent: 'analvids', }, { name: 'Horny Belle', slug: 'hornybelle', url: 'https://www.analvids.com/studios/horny-belle', parent: 'analvids', }, { name: 'GOSTOSAS VIDEO ', slug: 'gostosasvideo', url: 'https://www.analvids.com/studios/gostosas_video_', parent: 'analvids', }, { name: "Rebecca's Clips", slug: 'rebeccasclips', url: 'https://www.analvids.com/studios/rebecca--s-clips', parent: 'analvids', alias: [ 'rv', ], }, { name: 'Brandi Belle', slug: 'brandibelle', url: 'https://www.analvids.com/studios/brandi-belle', parent: 'analvids', }, { name: 'Club Candy Alexa', slug: 'clubcandyalexa', url: 'https://www.analvids.com/studios/club-candy-alexa', parent: 'analvids', alias: [ 'cca', ], }, { name: 'Bareback Attack', slug: 'barebackattack', url: 'https://www.analvids.com/studios/bareback-attack', parent: 'analvids', }, { name: 'bdsmmanga', slug: 'bdsmmanga', url: 'https://www.analvids.com/studios/bdsmmanga', parent: 'analvids', }, { name: 'ViSpace', slug: 'vispace', url: 'https://www.analvids.com/studios/vispace', parent: 'analvids', }, { name: 'Sophie Ladder', slug: 'sophieladder', url: 'https://www.analvids.com/studios/sophie_ladder', parent: 'analvids', }, { name: 'vangoren', slug: 'vangoren', url: 'https://www.analvids.com/studios/vangoren', parent: 'analvids', }, { name: 'DreamInSkies', slug: 'dreaminskies', url: 'https://www.analvids.com/studios/dreaminskies', parent: 'analvids', }, { name: 'Its Gonna Hurt', slug: 'itsgonnahurt', url: 'https://www.analvids.com/studios/its-gonna-hurt', parent: 'analvids', }, { name: 'CRUNCHBOY', slug: 'crunchboy', url: 'https://www.analvids.com/studios/crunchboy', parent: 'analvids', }, { name: 'BigDaddy Raw', slug: 'bigdaddyraw', url: 'https://www.analvids.com/studios/bigdaddy_raw', parent: 'analvids', }, { name: 'Hairy Gonzo', slug: 'hairygonzo', url: 'https://www.analvids.com/studios/hairy-gonzo', parent: 'analvids', alias: [ 'hg', ], }, { name: 'Rub Him', slug: 'rubhim', url: 'https://www.analvids.com/studios/rub-him', parent: 'analvids', }, { name: 'UngloryHole', slug: 'ungloryhole', url: 'https://www.analvids.com/studios/ungloryhole', parent: 'analvids', }, { name: 'Bareback Casting', slug: 'barebackcasting', url: 'https://www.analvids.com/studios/bareback-casting', parent: 'analvids', }, { name: 'JuliaKissy', slug: 'juliakissy', url: 'https://www.analvids.com/studios/juliasquirt', parent: 'analvids', }, { name: "Honour Mays' Manor House", slug: 'honourmaysmanorhouse', url: 'https://www.analvids.com/studios/honour-mays---manor-house', parent: 'analvids', alias: [ 'hm', ], }, { name: 'StaceyAlexisPawg', slug: 'staceyalexispawg', url: 'https://www.analvids.com/studios/staceyalexispawg', parent: 'analvids', }, { name: 'Gay Patrol', slug: 'gaypatrol', url: 'https://www.analvids.com/studios/gay-patrol', parent: 'analvids', }, { name: 'Thug Hunter', slug: 'thughunter', url: 'https://www.analvids.com/studios/thug-hunter', parent: 'analvids', }, { name: 'SexyNEBBW', slug: 'sexynebbw', url: 'https://www.analvids.com/studios/sexynebbw', parent: 'analvids', }, { name: 'Out In Public', slug: 'outinpublic', url: 'https://www.analvids.com/studios/out-in-public', parent: 'analvids', }, { name: 'Poundhisass', slug: 'poundhisass', url: 'https://www.analvids.com/studios/poundhisass', parent: 'analvids', }, { name: 'Bait Bus', slug: 'baitbus', url: 'https://www.analvids.com/studios/bait-bus-', parent: 'analvids', }, { name: 'Diamonds Production', slug: 'diamondsproduction', url: 'https://www.analvids.com/studios/diamonds_production', parent: 'analvids', }, { name: 'Sinemale', slug: 'sinemale', url: 'https://www.analvids.com/studios/sinemale', parent: 'analvids', }, { name: 'Fuck You Cracker', slug: 'fuckyoucracker', url: 'https://www.analvids.com/studios/fuck-you-cracker', parent: 'analvids', }, { name: 'Dark_Lady77', slug: 'darklady77', url: 'https://www.analvids.com/studios/dark_lady77', parent: 'analvids', }, { name: 'Butter Loads', slug: 'butterloads', url: 'https://www.analvids.com/studios/butter-loads', parent: 'analvids', }, { name: 'Edita Fantasy Studio', slug: 'editafantasystudio', url: 'https://www.analvids.com/studios/edita-fantasy-studio', parent: 'analvids', }, { name: 'Gay Pawn', slug: 'gaypawn', url: 'https://www.analvids.com/studios/gay-pawn', parent: 'analvids', }, { name: 'Troop Candy', slug: 'troopcandy', url: 'https://www.analvids.com/studios/troop-candy', parent: 'analvids', }, { name: 'Grab Ass', slug: 'grabass', url: 'https://www.analvids.com/studios/grab-ass', parent: 'analvids', }, { name: 'sydneyscreams4u', slug: 'sydneyscreams4u', url: 'https://www.analvids.com/studios/sydneyscreams4u', parent: 'analvids', }, { name: 'Nade Nasty ', slug: 'nadenasty', url: 'https://www.analvids.com/studios/nade_nasty_', parent: 'analvids', }, { name: 'ExBF', slug: 'exbf', url: 'https://www.analvids.com/studios/exbf', parent: 'analvids', }, { name: 'Project City Bus', slug: 'projectcitybus', url: 'https://www.analvids.com/studios/project-city-bus', parent: 'analvids', }, { name: 'Nylon Lingerie Studio', slug: 'nylonlingeriestudio', url: 'https://www.analvids.com/studios/nylon_lingerie_studio', parent: 'analvids', }, ]; /* eslint-disable max-len */ exports.seed = (knex) => Promise.resolve() .then(async () => { const networks = await knex('entities') .whereIn('slug', studios.map((studio) => studio.parent)); const networksMap = networks.reduce((acc, { id, slug }) => ({ ...acc, [slug]: id }), {}); const studiosWithNetwork = studios.map((studio) => ({ slug: studio.slug, name: studio.name, url: studio.url, type: 'studio', parent_id: networksMap[studio.parent], has_logo: studio.hasLogo || false, })); return upsert('entities', studiosWithNetwork, ['slug', 'type'], knex); });