-
-
Notifications
You must be signed in to change notification settings - Fork 136
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 playlist support for Album and Artist URIs #708
Comments
I'm having a potentially-related issue where I can't play local files seemingly at random. Like some of them work but some don't. When they don't, the Firefox web console says:
Same tracks add fine in ncmcpp. The weird thing is that other tracks in the library work fine. I totally reinstalled everything including wiping out my various caches and data files and the issue persists across browsers (Chrome, Firefox, desktop/mobile), etc. Verbose logging in mopidy didn't show much of interest. |
Can you both please provide the URIs of the tracks you're trying to add? I can only guess, but I am expecting the issue to be with URI encoding but need some examples to be certain. |
These don't work:
These work:
|
The example UIR I was using was "local:album:md5:29effead7af7158e15cb09f937dcd11b" and it works fine if I manually add that URI to the play now queue but if I play a playlist with that URI in it only the first track of album gets added. |
@artbird309 your URI is an album URI, so it will be expanded to tracks by Mopidy when adding to the queue or to a playlist. When playing the playlist you will be using the expanded track URIs. Can you please provide me the URIs of that album's tracks? Ultimately I think this is a duplicate of #711 |
The expanded UIRs after I manually add the album:
I do not have any issue playing the playlist with the album UIRs when it is played from my Home Assistant MPD integration only when I am manually playing that playlist from iris. It seems like playing the playlist from iris it does not expand the the whole album correctly anymore. I upgraded to 3.57.0 and still have this issue. |
The handling of accented characters is now fixed (see 3.57.1), but I can see some of your example URIs don't actually have accented characters. Are you able to upgrade Iris (making sure to clear all caches and restart Mopidy) to ascertain whether this patch fixed the issue for you? |
I upgraded my container to 3.57.1 and there was no change it is still only adding the first track of every album. |
@artbird309 can you please open the album, select all tracks and copy their URIs and paste them in here? Then right click on the selected tracks and hit Add to queue. Observe which ones are added and which ones are not so we can figure out what URIs are working and those that are not. |
As for my non-accented cases, I think the hyphens in the "don't work" category include unicode hyphens rather than normal hyphens. Copying and pasting them from my list above:
whereas a normal hyphen ( |
That would definitely do it. The immediate fix is for you to remove em and en dashes from your filenames in favor of hyphens. The reason this problem exists is because Mopidy backends require (to varying degrees) URL-safe URIs. Iris uses URLs to build links to content, so URIs need to be URL-safe in their entirety, however the encoding preferences vary between browsers and Mopidy extensions. Iris is stuck in the middle. The way to fix this is to either (in order of preference):
|
I upgraded to 3.57.3 and nothing changed. I reverted back to 3.52.4 to see if I could see any changes and it looks like we might be look at this incorrectly. When I am looking at the playlist in the current versions it shows just the first track per album, in 3.52.4 it just shows the album URI "local:album:md5:29effead7af7158e15cb09f937dcd11b" this makes me thing it is how Iris is rendering the playlist and then sending that to the queue. It is not pulling in the whole album so that is the only thing that is getting sent to the queue. See screenshots below. |
You're quite right. I think I assumed @partofthething's issue was related, but in fact his was quite different. While that issue is now resolved, yours remains. Can you please run me through the process of actually adding an Album URI to a playlist in Iris? I believe Add to playlist capabilities only exist for Tracks. |
I manually created the playlist as I was not able to find an easy way to add whole albums/artists as I have over 200 tracks in two different playlists. This is one of the playlists I have been using: |
Ok cool, that makes more sense now. I shall change this to a Feature Request to better reflect the development work required. Existing functionality is not broken, rather new functionality is desired. |
Describe the bug
After I upgraded from 3.52.4 to 3.53.0 and still in 3.56.0 I am unable to play my local media album/artist from .m3u8 playlist.
My playlist shows correctly as an album but when I try to play the playlist it only plays the first song for each album.
To Reproduce
Steps to reproduce the behavior:
Manually create a playlist with an album from local media using the URI "local:album:md5:29effead7af7158e15cb09f937dcd11b"
then in Iris go to the playlist and click play it will only add the first song, not the whole album.
Expected behavior
When you load a playlist with a local media album URI it adds the whole album to the queue.
Environment details:
Additional context
It still works fine using the MPD command to add the playlist correctly.
The text was updated successfully, but these errors were encountered: