Last.fm Playcount Import (2010-03-28) [MM3/4]

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

epiq
Posts: 7
Joined: Sun Mar 10, 2013 3:07 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by epiq »

Ok, good luck . i will not disturb you more )
Psyker7
Posts: 255
Joined: Sat Mar 03, 2007 8:00 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by Psyker7 »

Updated!

Code: Select all

Fixed some errors in XML exported by last.fm
Also updated some of the retry logic to allow clean failures if
required, and to kill the pools if we get an error so resuming is
quicker (if an HTTP connection hangs)
http://psykar.com/script-files/LastFmImport-3.3.mmip
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by rovingcowboy »

Thank you Psyker7 8)
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
thiagorobis
Posts: 10
Joined: Sun Sep 30, 2012 6:08 pm

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by thiagorobis »

Hello,
Firstly, congratulations on extension, is very good.
However, I have had a problem, so I can only import about 20% of my stats Last.fm.
Do not know if it's XML Last.fm or media library of MM that is used for comparison, but when there are accented characters in my language, Portuguese, appears in the error log, like below:
Log:

Code: Select all

2013-03-31 13:20:16,618: Reading existing cache from C:\Program Files (x86)\MediaMonkey\Scripts\LastFmImportPython\Cache
2013-03-31 13:20:16,710: Excluding between dates 1200416030 and 1364468363
2013-03-31 13:20:22,006: Pulling tracks between None - 1200416030
2013-03-31 13:20:27,023: Getting page 1...
2013-03-31 13:20:35,782: ... done with page 1
2013-03-31 13:20:36,539: Pulling tracks between 1364468363 - None
2013-03-31 13:20:38,546: Getting page 1...
2013-03-31 13:20:40,137: ... done with page 1
2013-03-31 13:20:46,141: Closing threads.
2013-03-31 13:20:46,141: Threads Closed.
2013-03-31 13:20:46,592: Starting matches
2013-03-31 13:20:52,308: Updated: 19
UpdatedDates: 11
UpdatedCounts: 12
Matches: 1782
Matched without album: 0
Unmatched: 2334
Total rows changed: 57

And my unMatched.txt file (part of it):

Code: Select all

('Match failed on: Artist/trackname', {'album': 'Sing-A-Longs & Lullabies For The Film Curious George', 'played_on_uts': '1235436492', 'name': 'Supposed To Be', 'played_on': datetime.datetime(2009, 2, 24, 0, 48), 'artist': 'Jack Johnson'})
('Match failed on: Artist/trackname', {'album': 'The Boy With No Name', 'played_on_uts': '1214342819', 'name': 'New Amsterdam', 'played_on': datetime.datetime(2008, 6, 24, 21, 26), 'artist': 'Travis'})
('Match failed on: Artist/trackname', {'played_on_uts': '1201020662', 'name': 'Casa', 'played_on': datetime.datetime(2008, 1, 22, 16, 51), 'artist': u'Lul\xfa Santos'})
('Match failed on: Artist/trackname', {'album': 'Lioness: Hidden Treasures', 'played_on_uts': '1360950636', 'name': 'Like Smoke (feat. Nas)', 'played_on': datetime.datetime(2013, 2, 15, 17, 50), 'artist': 'Amy Winehouse'})
('Match failed on: Artist/trackname', {'album': 'Rota 89 Vol 3  89.1 Fm', 'played_on_uts': '1233750637', 'name': 'Monday', 'played_on': datetime.datetime(2009, 2, 4, 12, 30), 'artist': u'Carlo Dallanese feat. [b][u]F\xe1bio[/u][/b] Castro'})
('Match failed on: Album', {'album': 'Perfil', 'played_on_uts': '1361378872', 'name': 'Jack Soul Brasileiro', 'played_on': datetime.datetime(2013, 2, 20, 16, 47), 'artist': 'Lenine'})
('Match failed on: Artist/trackname', {'album': 'LP', 'played_on_uts': '1224285197', 'name': "Can't Let Go", 'played_on': datetime.datetime(2008, 10, 17, 23, 13), 'artist': 'Landon Pigg'})
('Match failed on: Artist/trackname', {'album': "Amedeo Minghi: Cantare d'Amore", 'played_on_uts': '1356993871', 'name': "Cantare e d'Amore", 'played_on': datetime.datetime(2012, 12, 31, 22, 44), 'artist': 'Amedeo Minghi'})
('Match failed on: Artist/trackname', {'album': 'All The Stars and Boulevards', 'played_on_uts': '1217027286', 'name': 'Stars and Boulevards', 'played_on': datetime.datetime(2008, 7, 25, 23, 8), 'artist': 'Augustana'})
('Match failed on: Artist/trackname', {'album': 'Varrendo A Lua', 'played_on_uts': '1328881769', 'name': u'Sinal de Fuma[u][b]\xe7[/b][/u]a', 'played_on': datetime.datetime(2012, 2, 10, 13, 49), 'artist': 'Roberta Campos'})
('Match failed on: Artist/trackname', {'album': 'O Quintal Do Samba', 'played_on_uts': '1233880513', 'name': 'Papo De Samba', 'played_on': datetime.datetime(2009, 2, 6, 0, 35), 'artist': 'Fundo de Quintal'})
('Match failed on: Artist/trackname', {'album': 'Haughty Melodic', 'played_on_uts': '1226607935', 'name': 'Madeline and Nine', 'played_on': datetime.datetime(2008, 11, 13, 20, 25), 'artist': 'Mike Doughty'})
('Match failed on: Artist/trackname', {'album': 'Underage Thinking', 'played_on_uts': '1216846599', 'name': 'As We Get Older (Non Album Track)', 'played_on': datetime.datetime(2008, 7, 23, 20, 56), 'artist': 'Teddy Geiger'})
('Match failed on: Artist/trackname', {'played_on_uts': '1201131130', 'name': 'Tempos Modernos', 'played_on': datetime.datetime(2008, 1, 23, 23, 32), 'artist': u'Lul\xfa Santos'})
('Match failed on: Artist/trackname', {'album': 'Superior Sound of (1970-1975)', 'played_on_uts': '1233683962', 'name': 'Crocodile Rock', 'played_on': datetime.datetime(2009, 2, 3, 17, 59), 'artist': 'Elton John'})
('Match failed on: Artist/trackname', {'album': 'Rota 89 Vol 3  89.1 Fm', 'played_on_uts': '1233756914', 'name': u'I [b][u]Don\xb4t Know Why[/u][/b]', 'played_on': datetime.datetime(2009, 2, 4, 14, 15), 'artist': 'Moony'})
('Match failed on: Album', {'album': 'Greatest Hits', 'played_on_uts': '1344887559', 'name': 'Under the Bridge', 'played_on': datetime.datetime(2012, 8, 13, 19, 52), 'artist': 'Red Hot Chili Peppers'})
('Match failed on: Artist/trackname', {'album': 'Oxygen Custom Concert', 'played_on_uts': '1310573276', 'name': 'Breathe', 'played_on': datetime.datetime(2011, 7, 13, 16, 7), 'artist': 'Michelle Branch'})
('Match failed on: Artist/trackname', {'album': 'Reactivus Amor Est (Turba Philosophorum)', 'played_on_uts': '1233495643', 'name': 'Gabriel, Rafael, Miguel', 'played_on': datetime.datetime(2009, 2, 1, 13, 40), 'artist': 'Jorge Ben'})
('Match failed on: Album', {'album': u'Simples de Cora\xe7\xe3o', 'played_on_uts': '1217798936', 'name': 'A Promessa', 'played_on': datetime.datetime(2008, 8, 3, 21, 28), 'artist': 'Engenheiros Do Hawaii'})
('Match failed on: Artist/trackname', {'album': "Everybody Else Is Doing It, So Why Can't We?", 'played_on_uts': '1233094624', 'name': "I Can't Be With You", 'played_on': datetime.datetime(2009, 1, 27, 22, 17), 'artist': 'The Cranberries'})
('Match failed on: Artist/trackname', {'album': 'Hail to the Thief', 'played_on_uts': '1233954067', 'name': 'Sail to the Moon', 'played_on': datetime.datetime(2009, 2, 6, 21, 1), 'artist': 'Radiohead'})
('Match failed on: Artist/trackname', {'album': 'Album Brasiliano (cd2)', 'played_on_uts': '1215034164', 'name': u'Samba da b\xeanc\xe2o', 'played_on': datetime.datetime(2008, 7, 2, 21, 29), 'artist': 'Vinicius de Moraes'})
('Match failed on: Artist/trackname', {'album': 'Eu Vim Da Bahia', 'played_on_uts': '1200330412', 'name': 'Yemanja', 'played_on': datetime.datetime(2008, 1, 14, 17, 6), 'artist': 'Gilberto Gil'})
('Match failed on: Artist/trackname', {'album': 'Snow Blankets The Night', 'played_on_uts': '1216825613', 'name': 'I Found An Angel', 'played_on': datetime.datetime(2008, 7, 23, 15, 6), 'artist': 'Teddy Geiger'})
('Match failed on: Artist/trackname', {'album': 'Diga Sim', 'played_on_uts': '1233501367', 'name': u'Lux\xfaria', 'played_on': datetime.datetime(2009, 2, 1, 15, 16), 'artist': 'Isabella Taviani'})
('Match failed on: Artist/trackname', {'album': 'Broken Bracelet', 'played_on_uts': '1216816966', 'name': 'Second Chances', 'played_on': datetime.datetime(2008, 7, 23, 12, 42), 'artist': 'Michelle Branch'})
('Match failed on: Artist/trackname', {'album': 'In A Safe Place', 'played_on_uts': '1233964031', 'name': 'Thule', 'played_on': datetime.datetime(2009, 2, 6, 23, 47), 'artist': 'The Album Leaf'})
('Match failed on: Artist/trackname', {'album': u'In\xe9dito', 'played_on_uts': '1227221723', 'name': u'Por causa de voc\xea', 'played_on': datetime.datetime(2008, 11, 20, 22, 55), 'artist': u'Ant\xf4nio Carlos Jobim'})
('Match failed on: Artist/trackname', {'album': 'Leoni Ao Vivo', 'played_on_uts': '1232919055', 'name': 'Carro e Grana / A formula do..', 'played_on': datetime.datetime(2009, 1, 25, 21, 30), 'artist': 'Leoni'})
('Match failed on: Artist/trackname', {'album': 'Amor E Caos', 'played_on_uts': '1310767206', 'name': 'A Ana', 'played_on': datetime.datetime(2011, 7, 15, 22, 0), 'artist': u'Ana Ca\xf1as'})
('Match failed on: Album', {'album': u'20 Anos Antologia Ac\xfastica (Disco 1)', 'played_on_uts': '1233097222', 'name': 'Beira-Mar', 'played_on': datetime.datetime(2009, 1, 27, 23, 0), 'artist': u'Z\xe9 Ramalho'})
('Match failed on: Artist/trackname', {'album': 'Stomp The Yard', 'played_on_uts': '1225405329', 'name': "Ain't Nothing Wrong With That", 'played_on': datetime.datetime(2008, 10, 30, 22, 22), 'artist': 'Robert Randolph & The Family Band'})
('Match failed on: Artist/trackname', {'album': 'Marina Elali', 'played_on_uts': '1297597377', 'name': 'Conselhos', 'played_on': datetime.datetime(2011, 2, 13, 11, 42), 'artist': 'Marina Elali'})
('Match failed on: Artist/trackname', {'played_on_uts': '1201095270', 'name': u'Deusa da Ilus\xe3o', 'played_on': datetime.datetime(2008, 1, 23, 13, 34), 'artist': u'Lul\xfa Santos'})
('Match failed on: Artist/trackname', {'album': 'Chimarruts', 'played_on_uts': '1297600874', 'name': 'O Sol', 'played_on': datetime.datetime(2011, 2, 13, 12, 41), 'artist': 'Chimarruts'})
('Match failed on: Artist/trackname', {'album': u'Flores, Amores E Blablabl\xe1', 'played_on_uts': '1237511809', 'name': 'Tatuagem', 'played_on': datetime.datetime(2009, 3, 20, 1, 16), 'artist': 'Marjorie Estiano'})
('Match failed on: Album', {'album': 'The Very Best Of Aerosmith', 'played_on_uts': '1358864411', 'name': "Livin' on the Edge", 'played_on': datetime.datetime(2013, 1, 22, 14, 20), 'artist': 'Aerosmith'})
('Match failed on: Artist/trackname', {'album': 'Gran Turismo', 'played_on_uts': '1310681655', 'name': 'Do You Believe', 'played_on': datetime.datetime(2011, 7, 14, 22, 14), 'artist': 'The Cardigans'})
('Match failed on: Artist/trackname', {'album': 'Under My Skin', 'played_on_uts': '1216844163', 'name': 'Fall to Pieces', 'played_on': datetime.datetime(2008, 7, 23, 20, 16), 'artist': 'Avril Lavigne'})
('Match failed on: Artist/trackname', {'album': 'Claudia Leitte', 'played_on_uts': '1342130827', 'name': u'P\xe1ssaros', 'played_on': datetime.datetime(2012, 7, 12, 22, 7), 'artist': 'Claudia Leitte'})
('Match failed on: Album', {'album': 'Multishow Ao Vivo', 'played_on_uts': '1356651941', 'name': 'Fogo', 'played_on': datetime.datetime(2012, 12, 27, 23, 45), 'artist': 'Capital Inicial'})
('Match failed on: Artist/trackname', {'album': u'Forr\xf3 Hits', 'played_on_uts': '1297591933', 'name': 'chome liga', 'played_on': datetime.datetime(2011, 2, 13, 10, 12), 'artist': u'Avi\xf5es do Forr\xf3'})
('Match failed on: Artist/trackname', {'album': u'Pensei Que Fosse O C\xe9u', 'played_on_uts': '1233087586', 'name': 'Passional', 'played_on': datetime.datetime(2009, 1, 27, 20, 19), 'artist': 'Vander Lee e Zeca Baleiro'})
('Match failed on: Artist/trackname', {'album': 'The Family Jewels', 'played_on_uts': '1310673384', 'name': "Mowgli's Road", 'played_on': datetime.datetime(2011, 7, 14, 19, 56), 'artist': 'Marina & the Diamonds'})
('Match failed on: Artist/trackname', {'album': 'Proof Of Youth', 'played_on_uts': '1233949584', 'name': 'Grip Like A Vice', 'played_on': datetime.datetime(2009, 2, 6, 19, 46), 'artist': 'The Go! Team'})
('Match failed on: Artist/trackname', {'album': 'Ao Vivo em Todos os Sentidos', 'played_on_uts': '1336159528', 'name': 'na primeira manha', 'played_on': datetime.datetime(2012, 5, 4, 19, 25), 'artist': u'Alceu Valen\xe7a'})
('Match failed on: Artist/trackname', {'album': 'Two', 'played_on_uts': '1216828285', 'name': 'Your Hope', 'played_on': datetime.datetime(2008, 7, 23, 15, 51), 'artist': 'The Calling'})
('Match failed on: Artist/trackname', {'album': 'Nativus', 'played_on_uts': '1216302641', 'name': 'Deixa O Menino Jogar', 'played_on': datetime.datetime(2008, 7, 17, 13, 50), 'artist': 'Natiruts'})
('Match failed on: Artist/trackname', {'album': 'Opaline', 'played_on_uts': '1233863813', 'name': 'Angels or Devils', 'played_on': datetime.datetime(2009, 2, 5, 19, 56), 'artist': 'Dishwalla'})
('Match failed on: Artist/trackname', {'album': u'Jovem Nerd \xbb Nerdcast', 'played_on_uts': '1226582371', 'name': 'Nerdcast 117 - Brinquedos dos anos 80 - Parte 1', 'played_on': datetime.datetime(2008, 11, 13, 13, 19), 'artist': u'NC117 - Alottoni, Sra. Jovem Nerd, Tucano, Portuguesa e Azagh\xe2l, o an\xe3o'})
('Match failed on: Artist/trackname', {'album': u'Peixes, P\xe1ssaros, Pessoas', 'played_on_uts': '1310902882', 'name': u'T\xe1?', 'played_on': datetime.datetime(2011, 7, 17, 11, 41), 'artist': 'Mariana Aydar'})
('Match failed on: Album', {'album': 'Multishow ao Vivo: Dois Quartos', 'played_on_uts': '1233625119', 'name': u'Eu que n\xe3o sei quase nada do mar', 'played_on': datetime.datetime(2009, 2, 3, 1, 38), 'artist': 'Ana Carolina'})
('Match failed on: Artist/trackname', {'album': 'Amor A Arte', 'played_on_uts': '1226093377', 'name': u'Um Certo Algu\xe9m (Ao Vivo)', 'played_on': datetime.datetime(2008, 11, 7, 21, 29), 'artist': 'Lulu Santos'})
('Match failed on: Artist/trackname', {'album': 'Live Sessions EP', 'played_on_uts': '1310734869', 'name': 'Boys With Girlfriends (Acoustic)', 'played_on': datetime.datetime(2011, 7, 15, 13, 1), 'artist': 'Meiko'})
('Match failed on: Artist/trackname', {'album': 'Amy Winehouse at the BBC', 'played_on_uts': '1355689137', 'name': 'Lullaby of Birdland', 'played_on': datetime.datetime(2012, 12, 16, 20, 18), 'artist': 'Amy Winehouse'})
('Match failed on: Artist/trackname', {'album': 'Doll Domination', 'played_on_uts': '1352815840', 'name': 'When I Grow Up', 'played_on': datetime.datetime(2012, 11, 13, 14, 10), 'artist': 'The Pussycat Dolls'})
('Match failed on: Artist/trackname', {'album': u'A Gente Se V\xea Depois da Chuva', 'played_on_uts': '1310566937', 'name': u'A Gente Se V\xea Depois Da Chuva', 'played_on': datetime.datetime(2011, 7, 13, 14, 22), 'artist': 'Tomate'})
('Match failed on: Artist/trackname', {'album': 'Past to Present 1977-1990', 'played_on_uts': '1223151931', 'name': 'Africa', 'played_on': datetime.datetime(2008, 10, 4, 20, 25), 'artist': 'Toto'})
('Match failed on: Artist/trackname', {'album': u'Onde Voc\xea Estiver', 'played_on_uts': '1310571282', 'name': u'Imposs\xedvel', 'played_on': datetime.datetime(2011, 7, 13, 15, 34), 'artist': 'Seu Cuca'})
('Match failed on: Artist/trackname', {'album': 'Ta Na Boa', 'played_on_uts': '1229045753', 'name': 'Humanidade', 'played_on': datetime.datetime(2008, 12, 12, 1, 35), 'artist': u'Tianast\xe1cia'})
('Match failed on: Artist/trackname', {'album': 'Ivete Sangalo', 'played_on_uts': '1233497614', 'name': 'A Lua Q Eu T Dei', 'played_on': datetime.datetime(2009, 2, 1, 14, 13), 'artist': 'Ivete Sangalo'})
('Match failed on: Artist/trackname', {'album': 'Total Club Hits Vol. 2', 'played_on_uts': '1235245839', 'name': 'Killa', 'played_on': datetime.datetime(2009, 2, 21, 19, 50), 'artist': 'Cherish'})
('Match failed on: Album', {'album': u'M\xfasicas para Churrasco', 'played_on_uts': '1359841560', 'name': 'Vizinha', 'played_on': datetime.datetime(2013, 2, 2, 21, 46), 'artist': 'Seu Jorge'})
('Match failed on: Artist/trackname', {'album': u'Ac\xfastico', 'played_on_uts': '1233878311', 'name': 'Feriado Nacional', 'played_on': datetime.datetime(2009, 2, 5, 23, 58), 'artist': 'Bruno & Marrone'})
('Match failed on: Artist/trackname', {'album': 'OK Go', 'played_on_uts': '1216821046', 'name': 'Get Over It', 'played_on': datetime.datetime(2008, 7, 23, 13, 50), 'artist': 'OK Go'})
('Match failed on: Artist/trackname', {'album': 'Universal Audio', 'played_on_uts': '1225403119', 'name': 'I Fought The Angels', 'played_on': datetime.datetime(2008, 10, 30, 21, 45), 'artist': 'The Delgados'})
('Match failed on: Album', {'album': 'The Jackson 5 - The Greatest Hits [1971]', 'played_on_uts': '1363254944', 'name': 'I Want You Back', 'played_on': datetime.datetime(2013, 3, 14, 9, 55), 'artist': 'The Jackson 5'})
('Match failed on: Artist/trackname', {'album': 'fear', 'played_on_uts': '1217992268', 'name': 'All I Want', 'played_on': datetime.datetime(2008, 8, 6, 3, 11), 'artist': 'Toad The Wet Sprocket'})
('Match failed on: Artist/trackname', {'played_on_uts': '1328710763', 'name': 'Gandaia das ondas/Pedra e areia', 'played_on': datetime.datetime(2012, 2, 8, 14, 19), 'artist': 'Luiza Possi'})
('Match failed on: Artist/trackname', {'album': 'Nada pode parar os Autoramas', 'played_on_uts': '1216947576', 'name': 'Nada a ver', 'played_on': datetime.datetime(2008, 7, 25, 0, 59), 'artist': 'Autoramas'})
('Match failed on: Artist/trackname', {'album': 'Bird On A Wire', 'played_on_uts': '1224895790', 'name': 'My Sweet Song', 'played_on': datetime.datetime(2008, 10, 25, 0, 49), 'artist': 'Toby Lightman'})
('Match failed on: Artist/trackname', {'album': 'Transatlanticism', 'played_on_uts': '1233966218', 'name': 'Passenger Seat', 'played_on': datetime.datetime(2009, 2, 7, 0, 23), 'artist': 'Death Cab for Cutie'})
('Match failed on: Artist/trackname', {'album': 'Rota 89 Vol 3  89.1 Fm', 'played_on_uts': '1233685305', 'name': 'Put Your Hands Up For Detroit', 'played_on': datetime.datetime(2009, 2, 3, 18, 21), 'artist': 'Fedde Le Grand'})
('Match failed on: Artist/trackname', {'album': 'Segundo', 'played_on_uts': '1200338039', 'name': 'Casa Pre- Fabricada', 'played_on': datetime.datetime(2008, 1, 14, 19, 13), 'artist': 'Maria Rita'})
('Match failed on: Artist/trackname', {'album': "We've All Been There", 'played_on_uts': '1360071055', 'name': 'Euphoria', 'played_on': datetime.datetime(2013, 2, 5, 13, 30), 'artist': 'Alex Band'})
('Match failed on: Album', {'album': u'20 Anos Antologia Ac\xfastica', 'played_on_uts': '1348694262', 'name': u'Ch\xe3o De Giz', 'played_on': datetime.datetime(2012, 9, 26, 21, 17), 'artist': u'Z\xe9 Ramalho'})
('Match failed on: Album', {'album': 'Universal Music Remix', 'played_on_uts': '1292763985', 'name': 'Rise Up', 'played_on': datetime.datetime(2010, 12, 19, 13, 6), 'artist': 'Yves Larock'})
('Match failed on: Artist/trackname', {'album': 'Entrada para Raros', 'played_on_uts': '1328535694', 'name': 'Ana e o mar', 'played_on': datetime.datetime(2012, 2, 6, 13, 41), 'artist': u'O Teatro M\xe1gico'})
('Match failed on: Artist/trackname', {'album': 'Long Play', 'played_on_uts': '1359740169', 'name': u'Seu anivers\xe1rio (Remix)', 'played_on': datetime.datetime(2013, 2, 1, 17, 36), 'artist': 'Lulu Santos'})
('Match failed on: Artist/trackname', {'album': 'Rota 89 Vol 3  89.1 Fm', 'played_on_uts': '1233759496', 'name': 'Out Of My Mind', 'played_on': datetime.datetime(2009, 2, 4, 14, 58), 'artist': 'Lasgo'})
('Match failed on: Artist/trackname', {'album': 'O Grande Encontro 3', 'played_on_uts': '1310668640', 'name': 'Frisson', 'played_on': datetime.datetime(2011, 7, 14, 18, 37), 'artist': 'Elba Ramalho'})
('Match failed on: Album', {'album': 'Abbey Road', 'played_on_uts': '1361375899', 'name': 'I Want to Hold Your Hand', 'played_on': datetime.datetime(2013, 2, 20, 15, 58), 'artist': 'The Beatles'})
('Match failed on: Artist/trackname', {'album': 'The Best of the Corrs', 'played_on_uts': '1294692699', 'name': 'Runaway', 'played_on': datetime.datetime(2011, 1, 10, 20, 51), 'artist': 'The Corrs'})
I believe that to be a incompatibility encoding files.
You can take a look?
Thank you!
Psyker7
Posts: 255
Joined: Sat Mar 03, 2007 8:00 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by Psyker7 »

thiagorobis wrote:Hello,
Firstly, congratulations on extension, is very good.
However, I have had a problem, so I can only import about 20% of my stats Last.fm.
Do not know if it's XML Last.fm or media library of MM that is used for comparison, but when there are accented characters in my language, Portuguese, appears in the error log, like below:
Log:

Code: Select all

Matches: 1782
Matched without album: 0
Unmatched: 2334
Total rows changed: 57
Looks like it was able to match

And my unMatched.txt file (part of it):

Code: Select all

('Match failed on: Artist/trackname', {'album': u'Forr\xf3 Hits', 'played_on_uts': '1297591933', 'name': 'chome liga', 'played_on': datetime.datetime(2011, 2, 13, 10, 12), 'artist': u'Avi\xf5es do Forr\xf3'})
I believe that to be a incompatibility encoding files.
You can take a look?
Thank you!
So from the debug log, it looks like it matched 40% or more of your database, not too terrible.
In terms of finding the ones that didn't, any chance you can email your database to me (or upload it to dropbox or something and link it here or in PM)
Also if you could let me know your last.fm username that would be helpful to narrow things down.

I should point out, that the \xf3 and so on in the unmatched log, is only because I was having trouble being able to write out the unicode characters to the csv file. Internally it should be matching these correctly.

Cheers.
tleq

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by tleq »

Hello, I have an error when trying to use Lastfm Import 3.3. It did not happen before when I was using Windows 7, but recently I changed my OS to Windows 8 and I have this msg whenever I try to import

Error was encountered, rerunning will resume where you left off
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'/xea' in position 12: ordinal not in range (128)

Does anyone know how to solve the problem? Something with installing unicode support?
Thanks.
Psyker7
Posts: 255
Joined: Sat Mar 03, 2007 8:00 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by Psyker7 »

tleq wrote:Hello, I have an error when trying to use Lastfm Import 3.3. It did not happen before when I was using Windows 7, but recently I changed my OS to Windows 8 and I have this msg whenever I try to import

Error was encountered, rerunning will resume where you left off
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'/xea' in position 12: ordinal not in range (128)

Does anyone know how to solve the problem? Something with installing unicode support?
Thanks.
Man this unicode just keeps coming back to bite me... what's your last.fm username tleq?
tleq

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by tleq »

it's haburo
sordup
Posts: 126
Joined: Sat Mar 13, 2010 5:16 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by sordup »

I am not able to run this script without getting the following error:

<type 'exceptions.ValueError'>:min() arg is an empty sequence

What to do?
sordup
Posts: 126
Joined: Sat Mar 13, 2010 5:16 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by sordup »

I now have gotten this error:

<type 'exceptions.ValueError'>:min() arg is an empty sequence

on two separate machines (both Windows 7 64bit), two separate installations of MM 4.07

Have you no suggestions?
dennis800121
Posts: 8
Joined: Fri Feb 14, 2014 4:48 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by dennis800121 »

Hello!
I get the same error message as above:

Results:
Error was encountered, rerunning will resume where you left off

<type ''exceptions.ValueError'>: min() arg is an empty sequence


How do i fix this??
loubat
Posts: 43
Joined: Fri Feb 21, 2014 11:18 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by loubat »

First off, thanks! I'm new to MM (I installed it years ago on an old machine, but never took the time to use it properly), recently installed it a week or so ago. So of course it thinks all my songs were added on 2/16/14. This script has done a wonderful job at adding the "Last Played" value from LastFM to my MM database and fixing my playcounts, but is there a similar script to find the "First Played" value from LastFM and add it to the "Added" value of MM?
Hugohxc1984

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by Hugohxc1984 »

dennis800121 wrote:Hello!
I get the same error message as above:

Results:
Error was encountered, rerunning will resume where you left off

<type ''exceptions.ValueError'>: min() arg is an empty sequence


How do i fix this??
You need to set your recent tracks public on last.fm
mikecs83
Posts: 4
Joined: Mon Apr 21, 2014 6:57 pm

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by mikecs83 »

The Playcount importer has stopped working for me on 4.1.3. I select the importer, the mouse turns to an hourglass for a few seconds, then nothing happens - I never get the dialog box to input my user name. I tested older versions and the Python version and cannot get the dialog box to appear. Any suggestions? Did something in 4.1.3 change?

Thanks.
mcow
Posts: 834
Joined: Sun Sep 21, 2008 9:35 pm
Location: Cupertino, California

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Post by mcow »

It's working for me w/ 4.1.3.1708.
Post Reply