question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stripping garbage from track names

See original GitHub issue

Some internet services provide tracks with many garbage in the tags. This garbage seems to be at most common between services(for instance youtube and soundcloud connectors share (mostly) same function for stripping that garbage). I think it’d be better to implement one global anti-garbage function and put it to the core.

Further discussion topics

  1. Can such function be incompatible to some services?
  2. If artist and title are in the same string(what a pain), is it better to remove such garbage before or after separating artist from title?
  3. Should we provide ability to add more garabge-detecting regexes for users?
  4. UPD Sometimes connector should be able to pass more than one variant of parsed {artist, track}(when artistTrack is ambigous, e.g. "artist with- dashes -track title" or some cases like username on soundcloud). last.fm should handle such cases better than we can do.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alexespritcommented, Nov 6, 2016

@inverse I think we should get rid of v1 connectors first.

0reactions
alexespritcommented, Nov 11, 2016

Should we provide ability to add more garabge-detecting regexes for users?

It’s supported already:

  1. Connector developers can add new rules (regexes) to Metadata.YoutubeTrackFilters object to update MetadataFilter.youtube behaviour.
  2. They also can write custom filter functions with usage of regexes.
Read more comments on GitHub >

github_iconTop Results From Across the Web

150 Catchy Junk Removal Business Names + Generator
View 150+ unique & catchy Junk Removal Business name ideas from our brand experts. ... a free name generator tool you can use...
Read more >
Removing subway trash cans has resulted in more track fires ...
“Removing trash cans appears to have resulted in more track fires and garbage at a number of stations,” state Comptroller Thomas DiNapoli said ......
Read more >
MTA Trashes Pilot Program Removing Garbage Cans From ...
NEW YORK (CBSNewYork) -- The Metropolitan Transit Authority has trashed their pilot program that removed garbage cans from subway stations ...
Read more >
DC 'Trash Detectives' Dig Through Public Trash Cans to ...
D.C.'s “trash detectives” dig through public trash cans to identify who is using them for their personal garbage.
Read more >
Removing garbage cans in subway stations led to more trash ...
For those who thought removing subway station garbage cans as a means to decrease litter and rats seemed counterintuitive, you were right.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found