-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local opus files ignored if Title tag contains a dot #80
Comments
Ok I think I figured out what's going on:
The two missing tracks are the ones with a dot in their title. They are not added because they have I added some more debug in UserCollections.java and MediaWrapper.java, and it looks like the faulty media items might come from vlc?
|
The following workaround fixes the issue, but of course is just a workaround. diff --git a/app/src/main/java/org/tomahawk/libtomahawk/collection/UserCollection.java b/app/src/main/java/org/tomahawk/libtomahawk/collection/UserCollection.java
index b9763f0f..abfa9bb7 100644
--- a/app/src/main/java/org/tomahawk/libtomahawk/collection/UserCollection.java
+++ b/app/src/main/java/org/tomahawk/libtomahawk/collection/UserCollection.java
@@ -342,7 +342,7 @@ public class UserCollection extends DbCollection {
}
List<ScriptResolverTrack> tracks = new ArrayList<>();
for (MediaWrapper mw : mws) {
- if (mw.getType() == MediaWrapper.TYPE_AUDIO) {
+ if (mw.getType() == MediaWrapper.TYPE_AUDIO || mw.getUri().toString().endsWith("opus")) { |
Nope, this is a bug in MediaWrapper's defineType() method. Going to submit a PR soon. |
Nice! |
Otherwise the type detection will break as soon as the track title contains a dot, e.g. 'L.A. Woman' by The Doors. Fixes tomahawk-player#80
Hi, I was investigating why some of my opus songs would not show up in the Tomahawk Android app. Eventually I figured out that the app does not list files whose Title tag contains a dot, for example
L.A. Woman
of The Doors. If I rename the tag removing the dots, the song shows up as expected...mp3 files are not affected, it seems a bug specific to the opus format (or maybe to every format that uses the Vorbis tags for metadata?)
Version of the app is 0.986_armeabi-v7a
The text was updated successfully, but these errors were encountered: