Open thomastech opened 5 years ago
Great report, thank you for your care and attention. I will try to reproduce.
Are you able to provide a debug log (https://volumio.github.io/docs/User_Manual/Sending_logs_for_troubleshooting.html)? Best would be if you could:
If you have time could you repeat with "MusicLibrary->NAS", so we see the working path in action too.
I think I can reproduce this on 2.452. I will retest on your version if I get a chance as there has been some recent work on upnp support.
When I connect to MediaLibrary->NAS->nasbox and select a track, it gets added to the playlist.
# browse to the album I want
Jan 01 04:13:24 volumio volumio[843]: info: CURURI: music-library/NAS/nasbox/Van_Morrison/Moondance
# select a track, click the righthand menu to 'add to playlist'
Jan 01 04:13:30 volumio volumio[843]: info: Listing playlists
Jan 01 04:13:32 volumio volumio[843]: info: Pushing Favourites {"uri":"/mnt/NAS/nasbox/Van_Morrison/Moondance/02-Moondance.flac","favourite":false}
Jan 01 04:13:32 volumio volumio[843]: info: Listing playlists
Jan 01 04:13:50 volumio volumio[843]: info: CoreCommandRouter::executeOnPlugin: mpd , handleBrowseUri
Jan 01 04:13:50 volumio volumio[843]: info: CURURI: playlists
Jan 01 04:13:50 volumio volumio[843]: info: Listing playlists
Jan 01 04:13:51 volumio volumio[843]: info: CoreCommandRouter::executeOnPlugin: mpd , handleBrowseUri
Jan 01 04:13:51 volumio volumio[843]: info: CURURI: playlists/Playlist1
Jan 01 04:13:51 volumio volumio[843]: playlists/Playlist1
Jan 01 04:13:52 volumio volumio[843]: An internal error occurred while serving an albumart. Details: Error: ENOENT: no such file or directory, stat '/volumio/app/plugins/miscellanea/albumart/icons/fa-tags.svg'
When I try to go via MediaServers->NAS->folders->(pick an artist)->(pick an album) and add a track to playlist I get only one line in the system log (when I choose the 'add to playlist' option)
Jan 01 04:10:42 volumio volumio[843]: info: Listing playlists
When I try to add the item (not a web radio) to the favourites I get a different error, which is a separate problem.
Jan 01 04:12:13 volumio volumio[843]: info: CoreCommandRouter::executeOnPlugin: upnp_browser , addToFavourites
Jan 01 04:12:13 volumio volumio[843]: info: Error : CoreCommandRouter::executeOnPlugin: No method [addToFavourites] in plugin upnp_browser
Tested with 2.513, same behaviour observed and little to go on in the logs.
I also tried adding a track to a new playlist, that generated an empty playlist file.
Did a little hacking of the upnp_browser plugin
diff --git a/app/plugins/music_service/upnp_browser/index.js b/app/plugins/music_service/upnp_browser/index.js
index c9a0ad6..48c7200 100644
--- a/app/plugins/music_service/upnp_browser/index.js
+++ b/app/plugins/music_service/upnp_browser/index.js
@@ -158,6 +158,8 @@ ControllerUPNPBrowser.prototype.handleBrowseUri=function(curUri)
var response;
+ self.logger.info("CURURI: "+curUri);
+
if (curUri == 'upnp')
response = self.listRoot();
else if(curUri.startsWith("upnp/")){
but it doesn't help me much - the uri for the selected track looks like
upnp/folder/http://192.168.x.y:9000/ContentDirectory/Control@0$1$12$69$70
and I don't see how this gets passed to the code that writes the playlist file. It does seem like adding tracks to a playlist is not fully implemented for the UPNP (Media Server) music source type.
Workaround: adding a track to the play queue is supported, so I tried adding a track to the queue and saving the queue as a playlist. That much works.
But when I try to use that playlist I hit problems (version 2.513).
Jan 01 05:31:02 volumio volumio[13156]: info: Enqueue Playlist3
Jan 01 05:31:02 volumio volumio[13156]: info: CoreCommandRouter::volumioAddQueueItems
Jan 01 05:31:02 volumio volumio[13156]: info: CoreStateMachine::addQueueItems
Jan 01 05:31:02 volumio volumio[13156]: info: CorePlayQueue::addQueueItems
Jan 01 05:31:02 volumio volumio[13156]: info: Adding Item to queue: http://192.168.x.y:9000/disk/NON-DLNA/music/O0$1$7I13/Best%20Friend.flac
Jan 01 05:31:02 volumio volumio[13156]: info: Exploding uri http://192.168.x.y:9000/disk/NON-DLNA/music/O0$1$7I13/Best%20Friend.flac in service upnp_browser
Jan 01 05:31:02 volumio volumio[13156]: error: message=Did not get expected response from server:{"HTML":{"HEAD":[{"TITLE":[{"_":"404 Not Found"}]}],"BODY":[{"_":"The requested URL was not found on this server.","H1":[{"_":"Not Found"}]}]}}, stack=Error: Did not get expected response from server:{"HTML":{"HEAD":[{"TITLE":[{"_":"404 Not Found"}]}],"BODY":[{"_":"The requested URL was not found on this server.","H1":[{"_":"Not Found"}]}]}}
Jan 01 05:31:02 volumio volumio[13156]: at /volumio/app/plugins/music_service/upnp_browser/dlna-browser.js:140:24
Jan 01 05:31:02 volumio volumio[13156]: at Parser.<anonymous> (/volumio/node_modules/xml2js/lib/parser.js:303:18)
Jan 01 05:31:02 volumio volumio[13156]: at emitOne (events.js:116:13)
Jan 01 05:31:02 volumio volumio[13156]: at Parser.emit (events.js:211:7)
Jan 01 05:31:02 volumio volumio[13156]: at SAXParser.onclosetag (/volumio/node_modules/xml2js/lib/parser.js:261:26)
Jan 01 05:31:02 volumio volumio[13156]: at emit (/volumio/node_modules/sax/lib/sax.js:624:35)
Jan 01 05:31:02 volumio volumio[13156]: at emitNode (/volumio/node_modules/sax/lib/sax.js:629:5)
Jan 01 05:31:02 volumio volumio[13156]: at closeTag (/volumio/node_modules/sax/lib/sax.js:889:7)
Jan 01 05:31:02 volumio volumio[13156]: at SAXParser.write (/volumio/node_modules/sax/lib/sax.js:1436:13)
Jan 01 05:31:02 volumio volumio[13156]: at Parser.exports.Parser.Parser.parseString (/volumio/node_modules/xml2js/lib/parser.js:322:31)
Jan 01 05:31:02 volumio volumio[13156]: at Parser.parseString (/volumio/node_modules/xml2js/lib/parser.js:5:59)
Jan 01 05:31:02 volumio volumio[13156]: at Object.exports.parseString (/volumio/node_modules/xml2js/lib/parser.js:354:19)
Jan 01 05:31:02 volumio volumio[13156]: at IncomingMessage.<anonymous> (/volumio/app/plugins/music_service/upnp_browser/dlna-browser.js:93:15)
Jan 01 05:31:02 volumio volumio[13156]: at emitNone (events.js:111:20)
Jan 01 05:31:02 volumio volumio[13156]: at IncomingMessage.emit (events.js:208:7)
Jan 01 05:31:02 volumio volumio[13156]: at endReadableNT (_stream_readable.js:1064:12)
@xipmix Thanks for reporting your investigation; It appears you're duplicating the reported problem.
I'm new to Volumio and unfamiliar with its support community. So pardon my naivety, but are there official developers that actively monitor the github issues and do bug fixes?
I'm new to Volumio and unfamiliar with its support community.
The main developer is @volumio, there seem to be a couple of other people who have commit access (not me). The forums might be a good place to learn about this - https://volumio.org/forum/
Thank you for the developer info. Hopefully @volumio lends a hand with this issue.
Background Info: Version 2.513 on a RPI3 Model B, 16GB SD.
I've re-flashed a new SD card and started over. The problem remains. Plugins: Autostart 1.1.2, 80s80sRadio 1.0.0, Tunein Radio 1.1.0, Youtube Playback 0.0.9, Backup & Restore 0.7.2, GPIO Buttons 0.8.1
Problem Summary:
Cannot add single songs from "MediaServers->NAS" to Playlist. Adding songs to Playlist from "MusicLibrary->NAS" is Ok.
Cannot save web radio stations to favorites. Specifically I tried saving "Tunein Radio" and "80's80's Radio" web stations to "Web Radio->Radio Favourites". I have no problems saving "Volumio Selection" stations to Radio Favourites.
Another user has similar issues adding single songs. See: https://volumio.org/forum/can-add-single-songs-playlist-t11267.html
BTW, after deleting an entry from "Web Radio->Favorite Radios" the web page reverts to the main "Favorites" page. It should stay on "Web Radio->Favorite Radios".