Commit d8a91ab0 authored by Gink's avatar Gink

Increased accuracy of exthook when searching

> Changes Ed Sheeran's album named multiply from × to x, which fixed album art finding
  for this title.
parent 1097ceec
...@@ -2,7 +2,7 @@ PRAGMA synchronous = OFF; ...@@ -2,7 +2,7 @@ PRAGMA synchronous = OFF;
PRAGMA journal_mode = MEMORY; PRAGMA journal_mode = MEMORY;
BEGIN TRANSACTION; BEGIN TRANSACTION;
INSERT INTO `core_artist`(id, name, description) VALUES (205,'Justin Timberlake','No description available'),(409,'Akon','No description available'),(509,'Lifehouse','No description available'),(587,'Starship','No description available'),(683,'Flo Rida','No description available'),(686,'Fall Out Boy','No description available'),(808,'DJ Khaled','No description available'),(1327,'Rihanna','No description available'),(1570,'Jason Mraz','No description available'),(1795,'Coldplay','No description available'),(2238,'Hinder','No description available'),(2584,'Secondhand Serenade','No description available'),(2822,'Maroon 5','No description available'),(3107,'Chris Brown','No description available'),(3457,'Calvin Harris','No description available'),(5768,'David Guetta','No description available'),(6162,'Ne-Yo','No description available'),(6801,'Nelly','No description available'),(9294,'Sia','No description available'),(10944,'Wiz Khalifa','No description available'),(12108,'Backstreet Boys','No description available'),(12697,'Miley Cyrus','No description available'),(13036,'Adele','No description available'),(14571,'Taylor Swift','No description available'),(23160,'Jay Sean','No description available'),(37428,'Owl City','No description available'),(42820,'The Script','No description available'),(49104,'Katy Perry','No description available'),(57594,'Moderat','No description available'),(98252,'Drake','No description available'),(106218,'Nicki Minaj','No description available'),(114756,'Sam Smith','No description available'),(137257,'Avicii','No description available'),(142706,'Ellie Goulding','No description available'),(145870,'Big Sean','No description available'),(148465,'Andy Grammer','No description available'),(151365,'Adam Lambert','No description available'),(153327,'Backstreet Boys ','No description available'),(156589,'Dawin','No description available'),(167373,'Justin Bieber','No description available'),(201159,'Bastille','No description available'),(204743,'Jason Derulo','No description available'),(209178,'Khalid','No description available'),(262590,'Katy Perry','No description available'),(274605,'Bruno Mars','No description available'),(348773,'Imagine Dragons','No description available'),(383287,'Kendrick Lamar','No description available'),(419616,'Zedd','No description available'),(421734,'Twenty One Pilots','No description available'),(448041,'Alesso','No description available'),(463487,'ClariS','No description available'),(464253,'Ed Sheeran','No description available'),(466825,'Jessie J','No description available'),(475312,'Charlie Puth','No description available'),(613412,'One Direction','No description available'),(654841,'Ariana Grande','No description available'),(675482,'Adèle','No description available'),(740879,'Galantis','No description available'),(782380,'Martin Garrix','No description available'),(824249,'Bebe Rexha','No description available'),(836318,'Fifth Harmony','No description available'),(844257,'Lorde','No description available'),(856294,'American Authors','No description available'),(870446,'Zara Larsson','No description available'),(921516,'Selena Gomez','No description available'),(927364,'The Chainsmokers','No description available'),(946737,'Echosmith','No description available'),(955846,'5 Seconds of Summer','No description available'),(986658,'Kygo','No description available'),(989958,'Cardiknox','No description available'),(1033658,'Zayn','No description available'),(1035864,'Rixton','No description available'),(1071037,'Meghan Trainor','No description available'),(1074195,'Shawn Mendes','No description available'),(1088606,'Troye Sivan','No description available'),(1113014,'Post Malone','No description available'),(1117531,'Halsey','No description available'),(1164867,'Fetty Wap','No description available'),(1189739,'BTS','No description available'),(1211216,'Alessia Cara','No description available'),(1243225,'LANY','No description available'),(1248894,'Daya','No description available'),(1260240,'21 Savage','No description available'),(1264683,'Alan Walker','No description available'),(1276636,'DNCE','No description available'),(1325952,'Jonas Blue','No description available'),(1327079,'Camila Cabello','No description available'),(1427741,'Niall Horan','No description available'); INSERT INTO `core_artist`(id, name, description) VALUES (205,'Justin Timberlake','No description available'),(409,'Akon','No description available'),(509,'Lifehouse','No description available'),(587,'Starship','No description available'),(683,'Flo Rida','No description available'),(686,'Fall Out Boy','No description available'),(808,'DJ Khaled','No description available'),(1327,'Rihanna','No description available'),(1570,'Jason Mraz','No description available'),(1795,'Coldplay','No description available'),(2238,'Hinder','No description available'),(2584,'Secondhand Serenade','No description available'),(2822,'Maroon 5','No description available'),(3107,'Chris Brown','No description available'),(3457,'Calvin Harris','No description available'),(5768,'David Guetta','No description available'),(6162,'Ne-Yo','No description available'),(6801,'Nelly','No description available'),(9294,'Sia','No description available'),(10944,'Wiz Khalifa','No description available'),(12108,'Backstreet Boys','No description available'),(12697,'Miley Cyrus','No description available'),(13036,'Adele','No description available'),(14571,'Taylor Swift','No description available'),(23160,'Jay Sean','No description available'),(37428,'Owl City','No description available'),(42820,'The Script','No description available'),(49104,'Katy Perry','No description available'),(57594,'Moderat','No description available'),(98252,'Drake','No description available'),(106218,'Nicki Minaj','No description available'),(114756,'Sam Smith','No description available'),(137257,'Avicii','No description available'),(142706,'Ellie Goulding','No description available'),(145870,'Big Sean','No description available'),(148465,'Andy Grammer','No description available'),(151365,'Adam Lambert','No description available'),(153327,'Backstreet Boys ','No description available'),(156589,'Dawin','No description available'),(167373,'Justin Bieber','No description available'),(201159,'Bastille','No description available'),(204743,'Jason Derulo','No description available'),(209178,'Khalid','No description available'),(262590,'Katy Perry','No description available'),(274605,'Bruno Mars','No description available'),(348773,'Imagine Dragons','No description available'),(383287,'Kendrick Lamar','No description available'),(419616,'Zedd','No description available'),(421734,'Twenty One Pilots','No description available'),(448041,'Alesso','No description available'),(463487,'ClariS','No description available'),(464253,'Ed Sheeran','No description available'),(466825,'Jessie J','No description available'),(475312,'Charlie Puth','No description available'),(613412,'One Direction','No description available'),(654841,'Ariana Grande','No description available'),(675482,'Adèle','No description available'),(740879,'Galantis','No description available'),(782380,'Martin Garrix','No description available'),(824249,'Bebe Rexha','No description available'),(836318,'Fifth Harmony','No description available'),(844257,'Lorde','No description available'),(856294,'American Authors','No description available'),(870446,'Zara Larsson','No description available'),(921516,'Selena Gomez','No description available'),(927364,'The Chainsmokers','No description available'),(946737,'Echosmith','No description available'),(955846,'5 Seconds of Summer','No description available'),(986658,'Kygo','No description available'),(989958,'Cardiknox','No description available'),(1033658,'Zayn','No description available'),(1035864,'Rixton','No description available'),(1071037,'Meghan Trainor','No description available'),(1074195,'Shawn Mendes','No description available'),(1088606,'Troye Sivan','No description available'),(1113014,'Post Malone','No description available'),(1117531,'Halsey','No description available'),(1164867,'Fetty Wap','No description available'),(1189739,'BTS','No description available'),(1211216,'Alessia Cara','No description available'),(1243225,'LANY','No description available'),(1248894,'Daya','No description available'),(1260240,'21 Savage','No description available'),(1264683,'Alan Walker','No description available'),(1276636,'DNCE','No description available'),(1325952,'Jonas Blue','No description available'),(1327079,'Camila Cabello','No description available'),(1427741,'Niall Horan','No description available');
INSERT INTO `core_album`(id, album_name, year, artist_id) VALUES (816,'Who We Are',2007,509),(5855,'Trouble',2003,409),(7259,'Parachutes',2000,1795),(12554,'Suit',2004,6801),(13458,'No Name Face',2000,509),(13544,'Konvicted',2006,409),(13665,'A Rush of Blood to the Head',2002,1795),(14559,'Because of You',2007,6162),(14673,'Mr. A-Z',2005,1570),(14798,'X&Y',2005,1795),(17754,'Colour the Small One',2004,9294),(19129,'Songs About Jane',2002,2822),(19602,'I Created Disco',2007,3457),(19828,'Waiting For My Rocket To Come',2002,1570),(22983,'Good Girl Gone Bad',2007,1327),(24027,'A Girl Like Me',2006,1327),(24178,'Millennium',1999,12108),(25928,'Awake',2007,2584),(26169,'Nellyville',2002,6801),(27112,'Some People Have Real Problems',2008,9294),(28988,'Pop Life',2007,5768),(30519,'Taylor Swift',2006,14571),(34706,'FutureSex/LoveSounds',2006,205),(34710,'We the Best',2007,808),(34883,'Country Grammar',2000,6801),(37318,'It Won''t Be Soon Before Long',2007,2822),(38077,'A Twist In My Story',2008,2584),(41940,'In My Own Words',2006,6162),(44476,'Backstreet Boys',1996,12108),(45572,'Unbreakable',2007,12108),(53033,'Take This to Your Grave',2003,686),(55339,'Infinity on High',2007,686),(55695,'Me Against Myself',2004,23160),(57823,'Chris Brown',2005,3107),(61484,'Music of the Sun',2005,1327),(61696,'19',2008,13036),(64795,'Lifehouse',2005,509),(65072,'Justified',2002,205),(65859,'Backstreet''s Back',1997,12108),(66219,'Exclusive',2007,3107),(66454,'Never Gone',2005,12108),(70938,'Stanley Climbfall',2002,509),(71714,'Sweat',2004,6801),(72824,'Knee Deep in the Hoopla',1985,587),(78833,'Guetta Blaster',2004,5768),(87850,'Black & Blue',2000,12108),(88676,'Listennn...the Album',2006,808),(98810,'Mail on Sunday',2008,683),(100674,'Extreme Behavior',2005,2238),(106639,'From Under the Cork Tree',2005,686),(118428,'Fall Out Boy''s Evening Out With Your Girlfriend',2003,686),(131112,'Healing Is Difficult',2001,9294),(138714,'We Sing. We Dance. We Steal Things.',2008,1570),(142533,'My Own Way',2008,23160),(166090,'One of the Boys',2008,49104),(173441,'Maybe I''m Dreaming',2008,37428),(180706,'Far From Close',2003,2238),(189055,'Breakout',2008,12697),(189395,'Piano Compositions by Henry Cowell',1999,3107),(189463,'Love Among The Cannibals',1989,587),(201484,'Katy Hudson',2001,49104),(203718,'The Script',2008,42820),(224669,'Year of the Gentleman',2008,6162),(225624,'Brass Knuckles',2008,6801),(225639,'We Global',2008,808),(275705,'Viva la Vida or Death and All His Friends',2008,1795),(280963,'Take It to the Limit',2008,2238),(283165,'Diff''s Lucky Day',1999,509),(295240,'Fearless',2008,14571),(311226,'Freedom',2008,409),(319314,'Folie à Deux',2008,686),(338073,'No Protection',1987,587),(339429,'Show and Prove',2006,10944),(404563,'Moderat',2009,57594),(417887,'Just a Little More Love',2002,5768),(432045,'R.O.O.T.S.',2009,683),(538138,'Ocean Eyes',2009,37428),(538314,'Ready for the Weekend',2009,3457),(566365,'One Love',2009,5768),(580959,'This Is Us',2009,12108),(588540,'Kiss & Tell',2009,921516),(628592,'Rated R',2009,1327),(632258,'Take One',2009,151365),(635115,'All Or Nothing',2009,23160),(635122,'For Your Entertainment',2009,151365),(636780,'Deal or No Deal',2009,10944),(645530,'Graffiti',2009,3107),(710818,'Jason Derülo',2010,204743),(710949,'Lights',2010,142706),(712977,'Victory',2010,808),(716340,'Smoke & Mirrors',2010,509),(723289,'My World 2.0',2010,167373),(728510,'My Worlds',2010,167373),(785169,'Thank Me Later',2010,98252),(791113,'We Are Born',2010,9294),(795678,'Can''t Be Tamed',2010,12697),(826156,'Hear Me Now',2010,2584),(835932,'Teenage Dream',2010,49104),(845388,'Twenty One Pilots',2009,421734),(857392,'Hands All Over',2010,2822),(857450,'Science & Faith',2010,42820),(857571,'A Year Without Rain',2010,921516),(71810184,'Fall For You',2009,2584),(71812886,'Doo-Wops & Hooligans',2010,274605),(71829076,'Speak Now',2010,14571),(71832153,'Libra Scale',2010,6162),(71838282,'Rogue Wave',2005,3107),(71838283,'Lava',1995,3107),(71841921,'Loud',2010,1327),(71842718,'5.0',2010,6801),(71847782,'Pink Friday',2010,106218),(71848616,'My Worlds Acoustic',2010,167373),(71852080,'Only One Flo (Part I)',2010,683),(71854247,'Now That You''re Fed',2006,3107),(71856292,'All American Nightmare',2010,2238),(71891923,'21',2011,13036),(71892774,'OnlySee',1997,9294),(71921816,'Who You Are',2011,466825),(71929976,'F.A.M.E.',2011,3107),(71939382,'Rolling Papers',2011,10944),(71988476,'All Things Bright and Beautiful',2011,37428),(71992760,'Andy Grammer',2011,148465),(71997780,'Finally Famous',2011,145870),(71998012,'When the Sun Goes Down',2011,921516),(72002104,'Section.80',2011,383287),(72010613,'We the Best Forever',2011,808),(72033603,'Nothing But the Beat',2011,5768),(72037473,'Regional at Best',2011,421734),(72045386,'+',2011,464253),(72048111,'Future History',2011,204743),(72067385,'Mylo Xyloto',2011,1795),(72073611,'Under the Mistletoe',2011,167373),(72081892,'Take Care',2011,98252),(72087005,'Talk That Talk',2011,1327),(72087084,'Up All Night',2011,613412),(72130907,'Garden Partie',2009,675482),(72131517,'Bleu',2006,675482),(72175603,'Pink Friday: Roman Reloaded',2012,106218),(72184080,'BIRTHDAY',2012,463487),(72188007,'Love Is a Four Letter Word',2012,1570),(72207340,'Trespassing',2012,151365),(72234994,'Believe',2012,167373),(72237573,'Overexposed',2012,2822),(72239868,'Wild Ones',2012,683),(72243224,'Fortune',2012,3107),(72273946,'The Midsummer Station',2012,37428),(72274136,'Kiss the Ring',2012,808),(72285595,'Night Visions',2012,348773),(72286759,'#3',2012,42820),(72294075,'A Naked Twist In My Story',2012,2584),(72306454,'Clarity',2012,419616),(72307623,'Halcyon',2012,142706),(72318070,'good kid, m.A.A.d city',2012,383287),(72318105,'Red',2012,14571),(72324214,'18 Months',2012,3457),(72328040,'R.E.D.',2012,6162),(72335503,'Take Me Home',2012,613412),(72341364,'Unapologetic',2012,1327),(72352787,'O.N.I.F.C.',2012,10944),(72356469,'Welcome to the Freakshow',2012,2238),(72357496,'Unorthodox Jukebox',2012,274605),(72358570,'Almería',2012,509),(72378631,'So High',2012,23160),(72385318,'Vessel',2013,421734),(72400109,'Believe Acoustic',2013,167373),(72429011,'Bad Blood',2013,201159),(72438023,'The 20/20 Experience',2013,205),(72462023,'Save Rock and Roll',2013,686),(72515264,'II',2013,57594),(72519340,'SECOND STORY',2013,463487),(72534087,'Stars Dance',2013,921516),(72539105,'In a World Like This',2013,12108),(72540863,'Neon',2013,23160),(72557356,'Hall of Fame',2013,145870),(72563324,'Yours Truly',2013,654841),(72572571,'TRUE',2013,137257),(72575102,'Alive',2013,466825),(72575269,'Nothing Was the Same',2013,98252),(72576774,'Loveless Fascination',2013,587),(72577095,'Tattoos',2013,204743),(72580443,'Pure Heroine',2013,844257),(72581183,'M.O.',2013,6801),(72581721,'The 20/20 Experience - 2 of 2',2013,205),(72584934,'Bangerz',2013,12697),(72590256,'Talking Dreams',2013,946737),(72595514,'PRISM',2013,49104),(72596344,'Suffering from Success',2013,808),(72619052,'Midnight Memories',2013,613412),(72675855,'Oh, What a Life',2014,856294),(72701191,'Talk Dirty',2014,204743),(72718422,'Ghost Stories',2014,1795),(72723906,'In the Lonely Hour',2014,114756),(72731395,'PARTY TIME',2014,463487),(72740625,'×',2014,464253),(72744739,'5 Seconds of Summer',2014,955846),(72749162,'1000 Forms of Fear',2014,9294),(72753592,'Yes!',2014,1570),(72770154,'Magazines or Novels',2014,148465),(72776742,'Blacc Hollywood',2014,10944),(72779228,'My Everything',2014,654841),(72783778,'V',2014,2822),(72791425,'X',2014,3107),(72792151,'No Sound Without Silence',2014,42820),(72808390,'Sweet Talker',2014,466825),(72809673,'1',2014,870446),(72817155,'1989',2014,14571),(72819437,'Motion',2014,3457),(72820743,'Only 17',2011,1071037),(72829519,'Four',2014,613412),(72839780,'Listen',2014,5768),(72841052,'Undefeated',2014,2584),(72851486,'Room',1989,3107),(72852297,'Idiorhythmic',2014,114756),(72855787,'The Pinkprint',2014,106218),(72875970,'Title',2015,1071037),(72880279,'American Beauty / American Psycho',2015,686),(72889733,'Non-Fiction',2015,6162),(72892580,'Reflection',2015,836318),(72902118,'Smoke + Mirrors',2015,348773),(72905755,'Fan of a Fan: The Album',2015,3107),(72907429,'Dark Sky Paradise',2015,145870),(72917861,'Let The Road',2015,1035864),(72926857,'To Pimp a Butterfly',2015,383287),(72949056,'Handwritten',2015,1074195),(72956235,'Off With Your Head',2003,201159),(72965765,'When the Smoke Clears',2015,2238),(72967211,'Blurryface',2015,421734),(72968357,'True Colors',2015,419616),(72975203,'Out of the Wasteland',2015,509),(72976090,'Forever',2015,448041),(72981909,'Everything Is 4',2015,204743),(72987342,'Pharmacy',2015,740879),(72987735,'Cutter Heads',2006,3107),(72988817,'Duets',1996,3107),(72992018,'The Original High',2015,151365),(73008340,'Mobile Orchestra',2015,37428),(73045308,'Badlands',2015,1117531),(73063193,'Fetty Wap',2015,1164867),(73068131,'Stories',2015,137257),(73072747,'Revival',2015,921516),(73074517,'The World Is Yours',2007,148465),(73083186,'Sounds Good Feels Good',2015,955846),(73083536,'I Changed a Lot',2015,808),(73095175,'Delirium',2015,142706),(73098814,'Made In the A.M.',2015,613412),(73098857,'Know-It-All',2015,1211216),(73098957,'Purpose',2015,167373),(73103599,'25',2015,13036),(73108849,'Listen Again',2015,5768),(73114374,'A Head Full of Dreams',2015,1795),(73114378,'Blue Neighbourhood',2015,1088606),(73124872,'Royalty',2015,3107),(73153637,'This Is Acting',2016,9294),(73155604,'Nine Track Mind',2016,475312),(73155972,'ANTI',2016,1327),(73162535,'Khalifa',2016,10944),(73184511,'untitled unmastered.',2016,383287),(73189384,'Portrait',2016,989958),(73198864,'Mind of Mine',2016,1033658),(73202675,'III',2016,57594),(73224395,'Views',2016,98252),(73233692,'Thank You',2016,1071037),(73233717,'Cloud Nine',2016,986658),(73238678,'Dangerous Woman',2016,654841),(73243627,'7/27',2016,836318),(73268529,'What We Live For',2016,856294),(73286322,'Major Key',2016,808),(73312834,'Wild World',2016,201159),(73321380,'Illuminate',2016,1074195),(73329366,'Sit Still, Look Pretty',2016,1248894),(73344271,'Seven',2016,782380),(73351943,'Soft Serve Assault',2007,205); INSERT INTO `core_album`(id, album_name, year, artist_id) VALUES (816,'Who We Are',2007,509),(5855,'Trouble',2003,409),(7259,'Parachutes',2000,1795),(12554,'Suit',2004,6801),(13458,'No Name Face',2000,509),(13544,'Konvicted',2006,409),(13665,'A Rush of Blood to the Head',2002,1795),(14559,'Because of You',2007,6162),(14673,'Mr. A-Z',2005,1570),(14798,'X&Y',2005,1795),(17754,'Colour the Small One',2004,9294),(19129,'Songs About Jane',2002,2822),(19602,'I Created Disco',2007,3457),(19828,'Waiting For My Rocket To Come',2002,1570),(22983,'Good Girl Gone Bad',2007,1327),(24027,'A Girl Like Me',2006,1327),(24178,'Millennium',1999,12108),(25928,'Awake',2007,2584),(26169,'Nellyville',2002,6801),(27112,'Some People Have Real Problems',2008,9294),(28988,'Pop Life',2007,5768),(30519,'Taylor Swift',2006,14571),(34706,'FutureSex/LoveSounds',2006,205),(34710,'We the Best',2007,808),(34883,'Country Grammar',2000,6801),(37318,'It Won''t Be Soon Before Long',2007,2822),(38077,'A Twist In My Story',2008,2584),(41940,'In My Own Words',2006,6162),(44476,'Backstreet Boys',1996,12108),(45572,'Unbreakable',2007,12108),(53033,'Take This to Your Grave',2003,686),(55339,'Infinity on High',2007,686),(55695,'Me Against Myself',2004,23160),(57823,'Chris Brown',2005,3107),(61484,'Music of the Sun',2005,1327),(61696,'19',2008,13036),(64795,'Lifehouse',2005,509),(65072,'Justified',2002,205),(65859,'Backstreet''s Back',1997,12108),(66219,'Exclusive',2007,3107),(66454,'Never Gone',2005,12108),(70938,'Stanley Climbfall',2002,509),(71714,'Sweat',2004,6801),(72824,'Knee Deep in the Hoopla',1985,587),(78833,'Guetta Blaster',2004,5768),(87850,'Black & Blue',2000,12108),(88676,'Listennn...the Album',2006,808),(98810,'Mail on Sunday',2008,683),(100674,'Extreme Behavior',2005,2238),(106639,'From Under the Cork Tree',2005,686),(118428,'Fall Out Boy''s Evening Out With Your Girlfriend',2003,686),(131112,'Healing Is Difficult',2001,9294),(138714,'We Sing. We Dance. We Steal Things.',2008,1570),(142533,'My Own Way',2008,23160),(166090,'One of the Boys',2008,49104),(173441,'Maybe I''m Dreaming',2008,37428),(180706,'Far From Close',2003,2238),(189055,'Breakout',2008,12697),(189395,'Piano Compositions by Henry Cowell',1999,3107),(189463,'Love Among The Cannibals',1989,587),(201484,'Katy Hudson',2001,49104),(203718,'The Script',2008,42820),(224669,'Year of the Gentleman',2008,6162),(225624,'Brass Knuckles',2008,6801),(225639,'We Global',2008,808),(275705,'Viva la Vida or Death and All His Friends',2008,1795),(280963,'Take It to the Limit',2008,2238),(283165,'Diff''s Lucky Day',1999,509),(295240,'Fearless',2008,14571),(311226,'Freedom',2008,409),(319314,'Folie à Deux',2008,686),(338073,'No Protection',1987,587),(339429,'Show and Prove',2006,10944),(404563,'Moderat',2009,57594),(417887,'Just a Little More Love',2002,5768),(432045,'R.O.O.T.S.',2009,683),(538138,'Ocean Eyes',2009,37428),(538314,'Ready for the Weekend',2009,3457),(566365,'One Love',2009,5768),(580959,'This Is Us',2009,12108),(588540,'Kiss & Tell',2009,921516),(628592,'Rated R',2009,1327),(632258,'Take One',2009,151365),(635115,'All Or Nothing',2009,23160),(635122,'For Your Entertainment',2009,151365),(636780,'Deal or No Deal',2009,10944),(645530,'Graffiti',2009,3107),(710818,'Jason Derülo',2010,204743),(710949,'Lights',2010,142706),(712977,'Victory',2010,808),(716340,'Smoke & Mirrors',2010,509),(723289,'My World 2.0',2010,167373),(728510,'My Worlds',2010,167373),(785169,'Thank Me Later',2010,98252),(791113,'We Are Born',2010,9294),(795678,'Can''t Be Tamed',2010,12697),(826156,'Hear Me Now',2010,2584),(835932,'Teenage Dream',2010,49104),(845388,'Twenty One Pilots',2009,421734),(857392,'Hands All Over',2010,2822),(857450,'Science & Faith',2010,42820),(857571,'A Year Without Rain',2010,921516),(71810184,'Fall For You',2009,2584),(71812886,'Doo-Wops & Hooligans',2010,274605),(71829076,'Speak Now',2010,14571),(71832153,'Libra Scale',2010,6162),(71838282,'Rogue Wave',2005,3107),(71838283,'Lava',1995,3107),(71841921,'Loud',2010,1327),(71842718,'5.0',2010,6801),(71847782,'Pink Friday',2010,106218),(71848616,'My Worlds Acoustic',2010,167373),(71852080,'Only One Flo (Part I)',2010,683),(71854247,'Now That You''re Fed',2006,3107),(71856292,'All American Nightmare',2010,2238),(71891923,'21',2011,13036),(71892774,'OnlySee',1997,9294),(71921816,'Who You Are',2011,466825),(71929976,'F.A.M.E.',2011,3107),(71939382,'Rolling Papers',2011,10944),(71988476,'All Things Bright and Beautiful',2011,37428),(71992760,'Andy Grammer',2011,148465),(71997780,'Finally Famous',2011,145870),(71998012,'When the Sun Goes Down',2011,921516),(72002104,'Section.80',2011,383287),(72010613,'We the Best Forever',2011,808),(72033603,'Nothing But the Beat',2011,5768),(72037473,'Regional at Best',2011,421734),(72045386,'+',2011,464253),(72048111,'Future History',2011,204743),(72067385,'Mylo Xyloto',2011,1795),(72073611,'Under the Mistletoe',2011,167373),(72081892,'Take Care',2011,98252),(72087005,'Talk That Talk',2011,1327),(72087084,'Up All Night',2011,613412),(72130907,'Garden Partie',2009,675482),(72131517,'Bleu',2006,675482),(72175603,'Pink Friday: Roman Reloaded',2012,106218),(72184080,'BIRTHDAY',2012,463487),(72188007,'Love Is a Four Letter Word',2012,1570),(72207340,'Trespassing',2012,151365),(72234994,'Believe',2012,167373),(72237573,'Overexposed',2012,2822),(72239868,'Wild Ones',2012,683),(72243224,'Fortune',2012,3107),(72273946,'The Midsummer Station',2012,37428),(72274136,'Kiss the Ring',2012,808),(72285595,'Night Visions',2012,348773),(72286759,'#3',2012,42820),(72294075,'A Naked Twist In My Story',2012,2584),(72306454,'Clarity',2012,419616),(72307623,'Halcyon',2012,142706),(72318070,'good kid, m.A.A.d city',2012,383287),(72318105,'Red',2012,14571),(72324214,'18 Months',2012,3457),(72328040,'R.E.D.',2012,6162),(72335503,'Take Me Home',2012,613412),(72341364,'Unapologetic',2012,1327),(72352787,'O.N.I.F.C.',2012,10944),(72356469,'Welcome to the Freakshow',2012,2238),(72357496,'Unorthodox Jukebox',2012,274605),(72358570,'Almería',2012,509),(72378631,'So High',2012,23160),(72385318,'Vessel',2013,421734),(72400109,'Believe Acoustic',2013,167373),(72429011,'Bad Blood',2013,201159),(72438023,'The 20/20 Experience',2013,205),(72462023,'Save Rock and Roll',2013,686),(72515264,'II',2013,57594),(72519340,'SECOND STORY',2013,463487),(72534087,'Stars Dance',2013,921516),(72539105,'In a World Like This',2013,12108),(72540863,'Neon',2013,23160),(72557356,'Hall of Fame',2013,145870),(72563324,'Yours Truly',2013,654841),(72572571,'TRUE',2013,137257),(72575102,'Alive',2013,466825),(72575269,'Nothing Was the Same',2013,98252),(72576774,'Loveless Fascination',2013,587),(72577095,'Tattoos',2013,204743),(72580443,'Pure Heroine',2013,844257),(72581183,'M.O.',2013,6801),(72581721,'The 20/20 Experience - 2 of 2',2013,205),(72584934,'Bangerz',2013,12697),(72590256,'Talking Dreams',2013,946737),(72595514,'PRISM',2013,49104),(72596344,'Suffering from Success',2013,808),(72619052,'Midnight Memories',2013,613412),(72675855,'Oh, What a Life',2014,856294),(72701191,'Talk Dirty',2014,204743),(72718422,'Ghost Stories',2014,1795),(72723906,'In the Lonely Hour',2014,114756),(72731395,'PARTY TIME',2014,463487),(72740625,'x',2014,464253),(72744739,'5 Seconds of Summer',2014,955846),(72749162,'1000 Forms of Fear',2014,9294),(72753592,'Yes!',2014,1570),(72770154,'Magazines or Novels',2014,148465),(72776742,'Blacc Hollywood',2014,10944),(72779228,'My Everything',2014,654841),(72783778,'V',2014,2822),(72791425,'X',2014,3107),(72792151,'No Sound Without Silence',2014,42820),(72808390,'Sweet Talker',2014,466825),(72809673,'1',2014,870446),(72817155,'1989',2014,14571),(72819437,'Motion',2014,3457),(72820743,'Only 17',2011,1071037),(72829519,'Four',2014,613412),(72839780,'Listen',2014,5768),(72841052,'Undefeated',2014,2584),(72851486,'Room',1989,3107),(72852297,'Idiorhythmic',2014,114756),(72855787,'The Pinkprint',2014,106218),(72875970,'Title',2015,1071037),(72880279,'American Beauty / American Psycho',2015,686),(72889733,'Non-Fiction',2015,6162),(72892580,'Reflection',2015,836318),(72902118,'Smoke + Mirrors',2015,348773),(72905755,'Fan of a Fan: The Album',2015,3107),(72907429,'Dark Sky Paradise',2015,145870),(72917861,'Let The Road',2015,1035864),(72926857,'To Pimp a Butterfly',2015,383287),(72949056,'Handwritten',2015,1074195),(72956235,'Off With Your Head',2003,201159),(72965765,'When the Smoke Clears',2015,2238),(72967211,'Blurryface',2015,421734),(72968357,'True Colors',2015,419616),(72975203,'Out of the Wasteland',2015,509),(72976090,'Forever',2015,448041),(72981909,'Everything Is 4',2015,204743),(72987342,'Pharmacy',2015,740879),(72987735,'Cutter Heads',2006,3107),(72988817,'Duets',1996,3107),(72992018,'The Original High',2015,151365),(73008340,'Mobile Orchestra',2015,37428),(73045308,'Badlands',2015,1117531),(73063193,'Fetty Wap',2015,1164867),(73068131,'Stories',2015,137257),(73072747,'Revival',2015,921516),(73074517,'The World Is Yours',2007,148465),(73083186,'Sounds Good Feels Good',2015,955846),(73083536,'I Changed a Lot',2015,808),(73095175,'Delirium',2015,142706),(73098814,'Made In the A.M.',2015,613412),(73098857,'Know-It-All',2015,1211216),(73098957,'Purpose',2015,167373),(73103599,'25',2015,13036),(73108849,'Listen Again',2015,5768),(73114374,'A Head Full of Dreams',2015,1795),(73114378,'Blue Neighbourhood',2015,1088606),(73124872,'Royalty',2015,3107),(73153637,'This Is Acting',2016,9294),(73155604,'Nine Track Mind',2016,475312),(73155972,'ANTI',2016,1327),(73162535,'Khalifa',2016,10944),(73184511,'untitled unmastered.',2016,383287),(73189384,'Portrait',2016,989958),(73198864,'Mind of Mine',2016,1033658),(73202675,'III',2016,57594),(73224395,'Views',2016,98252),(73233692,'Thank You',2016,1071037),(73233717,'Cloud Nine',2016,986658),(73238678,'Dangerous Woman',2016,654841),(73243627,'7/27',2016,836318),(73268529,'What We Live For',2016,856294),(73286322,'Major Key',2016,808),(73312834,'Wild World',2016,201159),(73321380,'Illuminate',2016,1074195),(73329366,'Sit Still, Look Pretty',2016,1248894),(73344271,'Seven',2016,782380),(73351943,'Soft Serve Assault',2007,205);
INSERT INTO `core_song`(id, song_name, genre, song_length, lyrics, artist_id, album_id) VALUES (1,'.mp3 s5996565s 01 - Justin Timberlake - Futuresex,Lovesounds.mp3 ÷ INSERT INTO `core_song`(id, song_name, genre, song_length, lyrics, artist_id, album_id) VALUES (1,'.mp3 s5996565s 01 - Justin Timberlake - Futuresex,Lovesounds.mp3 ÷
.mp3 s6208211s 02 - Justin Timberlake - Sexyback.mp3 ÷ .mp3 s6208211s 02 - Justin Timberlake - Sexyback.mp3 ÷
.mp3 s9144025s 03 - Justin Timberlake - Sexy Ladies,Let Me Talk To You Prelude.mp3 ÷ .mp3 s9144025s 03 - Justin Timberlake - Sexy Ladies,Let Me Talk To You Prelude.mp3 ÷
......
# -*- coding: utf-8 -*-
import pprint
import musicbrainzngs import musicbrainzngs
from musicbrainzngs import ResponseError from musicbrainzngs import ResponseError
pp = pprint.PrettyPrinter(indent=4)
def init(): def init():
musicbrainzngs.set_useragent("mymusiclist","0.1", contact="none") musicbrainzngs.set_useragent("mymusiclist","0.1", contact="none")
musicbrainzngs.set_rate_limit(limit_or_interval=False, new_requests=1) musicbrainzngs.set_rate_limit(limit_or_interval=False, new_requests=1)
print("Exthook init called.") print("[Exthook] Initialized")
def getAlbumArtByName(name, artistname): def getAlbumArtByName(name, artist):
results = musicbrainzngs.search_release_groups(name, artist=artistname) debug("GET " + name + " " + artist)
results = musicbrainzngs.search_release_groups(name, limit = 3, artistname=artist, primarytype="album")
#pp.pprint(results['release-group-list'])
results = results['release-group-list'] results = results['release-group-list']
resultid = results[0]['id'] resultid = results[0]['id']
print("[Exthook] ID = " + resultid) debug("ID = " + resultid)
try: try:
imagelist = musicbrainzngs.get_release_group_image_list(resultid) imagelist = musicbrainzngs.get_release_group_image_list(resultid)
except ResponseError: except ResponseError:
debug("No image found.")
return "NaN" return "NaN"
return imagelist['images'][0]['thumbnails']['large'] return imagelist['images'][0]['thumbnails']['large']
def debug(string):
print("[Exthook] " + string)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment