bugGNU FM - Bugs: bug #26475, lastscrape.py: Very long track...

 
 

bug #26475: lastscrape.py: Very long track names are truncated

Submitter:  None
Submitted:  Wed 06 May 2009 10:40:35 PM UTC
   
 
Category:  lastscrape Severity:  3 - Normal
Item Group:  Importing Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 06 May 2009 10:40:35 PM UTC, original submission:  

Because lastscrape.py scrapes Last.fm pages, it gets the link text  for the track name. Last.fm truncates very long track names on the listening history pages so lastscrape.py gets the truncated name, too. Example:

"Perheenjäsen määrittelee (kotoisia esineitä käyttötarkoituksen mukaan ja suorittaa käytäntöön viittaavia yläkäsitemääritelmiä)" by Absoluuttinen Nollapiste, at
http://www.last.fm/music/Absoluuttinen+Nollapiste/_/Perheenj%C3%A4sen+M%C3%A4%C3%A4rittelee+%28Kotoisia+Esineit%C3%A4+K%C3%A4ytt%C3%B6tarkoituksen+Mukaan+Ja+Suorittaa+K%C3%A4yt%C3%A4nt%C3%B6%C3%B6n+Viittaavia+Yl%C3%A4k%C3%A4sitem%C3%A4%C3%A4ritelmi%C3%A4%29
appears as "Perheenjäsen Määrittelee (Kotoisia Esineitä Käyttötarkoituksen Mukaan Ja Suorittaa…"

Suggestion: Parsing the url should give the correct track name after unescaping the % codes and tr/+/\ / after the last / in the url.


Toni (hyark on irc, tonique on Libre/Last)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code