Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[MM2+]

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[MM2+]

SOLVED: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[MM2+]

by JOOP » Tue Mar 19, 2019 10:42 am

Finally, it is working now :D .

This is a summary with regard to the export of m3u-playlists created within Mediamonkey (V4.x) to a Synology Diskstation (D218+) with the Create/Export Playlist Tool Version 4.1..

After many tests the playlists are being recognized and read by Synology Media Server with the following configuration:

[x] M3U
[x] ANSI
[_] #Ext
[x] Unavailable
[x] Relative
[x] Unix („/“,LF)
[_] Replace
[_] Use regular expressions....

Paths on Synology:

[x]:/music/Musik (=> music files)
[x]:/music/playlists (=> playlists)

„music“ is the default drive of Disk Station for music files.

The playlists should be exported into the folder „playlists“ (they may also be stored in „Musik“).

After export, it is important to run the „Indexation“ function for the respective folders that are to be accessed by Synology Media Server. This is true also if music files or playlists respectively have changed.

In order that playlists and their contents are streamed via Synology Media Server, please note that Audio Station has to run. In my tests the Playlists have not been recognised after switching-off Audio Station. Only Synology knows why... .

Playlists in that format are also recognized by MinimServer (after a rescan by MinimWatch).

This configuration runs with Hifi-Cast (Android) as well as with SONOS.

I would like to thank Zvezdan for his patience, support and fast reactions.

Although the export may be effected with V4.1. of the tool, I recommend everybody to update to V 5.4, and by this way supporting Zvezdan for his work to create and enhance this invaluable tool which makes all our lives a lot easier.

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[MM2+]

by JOOP » Sun Mar 17, 2019 5:48 am

Zvezdan,

By separate mail I have send two sample playlists to you together with further information.

However, If I uncheck „Unix“ option and activate „relative“ then I can not use the option „replace“ „\“ with „/“ by default.

The path is
P:/music/Musik (=music files)
P:/music/playlists (=playlists)

If I see it correctly, the playlist files start with ../Musik. The only distinction is the #Extm3u at the beginning at the audio station playlist.

I am sure have I overlooked something but no clue what it could be :-? .

Very grateful for your support.
Jochen

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[MM2+]

by ZvezdanD » Sun Mar 17, 2019 4:07 am

JOOP wrote:
Sun Mar 17, 2019 3:41 am
the only playlist that works is the one which I have created in Audiostation of Synology, whichs shows the first line (see above) when opening it with the editor, but not the other information. It also starts each song with a new line.

...

I might also send you the m3u file created on audiostation.
Please e-mail me your M3U file or upload it to Dropbox, maybe it could help if I take a look at its native form. As I said, I don't think that the missing #EXTINF lines are the only reason why that file works fine. Maybe it is the new line codes in it or UTF-8 format or something else.

If your file created in Audiostation has CR+LF codes for new lines, then you should not enable the Unix option. However, in that case, if you have the slash character in your file as a folder separator instead of backslash then you should use the Replace option to change "\" to "/".

Are you sure that the media files referenced in the M3U playlist generated by my add-on have the same paths as your M3U file created in Audiostation?

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[MM2+]

by JOOP » Sun Mar 17, 2019 3:41 am

Hello Zvezdan,

Thank you for your reply.
The extended M3U format contains both #EXTM3U on the beginning of the playlist and #EXTINF lines for each referenced file. There is no point to use the extended format to have just #EXTM3U line without #EXTINF lines.
I fully understand this. Nevertheless, the only playlist that works is the one which I have created in Audiostation of Synology, whichs shows the first line (see above) when opening it with the editor, but not the other information. It also starts each song with a new line.

These are the properties:

https://www.directupload.net/file/d/539 ... w6_jpg.htm

Would be grateful for your help. I might also send you the m3u file created on audiostation.

Thanky you,
Jochen

P.S.
Independently from this I will donate for your version 5.3.6 which I have only recoverered yesterday.

Re: How to export playlists Synology NAS7Linux

by ZvezdanD » Sat Mar 16, 2019 2:42 pm

JOOP wrote:
Sat Mar 16, 2019 11:43 am
However, „#EXTM3U“ at the beginning of the playlist file is missing. On the other hand, if I check „#Ext“, then the information of „#EXTINF:283“ at beginning of each track seems to block reading of the playlist.
The simple M3U format contains only list of files and nothing more. The extended M3U format contains both #EXTM3U on the beginning of the playlist and #EXTINF lines for each referenced file. There is no point to use the extended format to have just #EXTM3U line without #EXTINF lines. I doubt that the #EXTINF lines are reason for your issue, there must be some another problem.

What do you have enabled, ANSI or Unicode? You cannot have enabled both of them at the same time (it is very unlikely that you need Unicode enabled anyway).

By the way, I don't understand how your issue is related to the mentioned post in this thread on page 22.

How to export playlists Synology NAS7Linux

by JOOP » Sat Mar 16, 2019 11:43 am

Hello Zvezdan,

Unfortunately, I need help again. I am using version 4.1. of your script.

Recently I have transferred my music collection to a Synology NAS. NAS runs with Linux (and Disk Station Manager V 6.2.1.). Everything works fine but the playlists.

I need to export playlists into the folder /music/playlists in order to be recognized by other players using Synology Media Server (such as Hifi-Cast).

Currently I am struggling with the format in which to export my MM4 playlists to that folder. My problem is similar to that I found in this thread on page 22 (2014 Jul 03).

I have managed to create a playlist within Audio Station of Synology NAS, which can be read by other devices connected to Synology NAS as Media Server.

The playlist created looks like this:
#EXTM3U
../Musik/......../song1.mp3
../Musik/......../song2.mp3
../Musik/......../song3.mp3
(„MUSIK“ is the folder on Synology where the mp3 files are stored), same level as the „playlists“ folder (../playlists).

As closest approximation in options I found this:

[x] m3u
[x] ansi
[_] #Ext
[x] unicode
[x] exclude unavailable
[x] Relative
[x] unix
[_] replace
[_]use regular expressions...

Result:
../Musik/..../song1.mp3../Musik/..../song2.mp3../Musik/..../song3.mp3
However, „#EXTM3U“ at the beginning of the playlist file is missing. On the other hand, if I check „#Ext“, then the information of „#EXTINF:283“ at beginning of each track seems to block reading of the playlist.

I did not manage to achieve the goal by trying other options. Since I have about a hundred playlists, manual editing with notepad seems not to be a good option either.

Therefore I am grateful for your help how to achieve this.

Thanks,
Jochen

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[M

by ZvezdanD » Tue Nov 21, 2017 11:58 am

Just start installation and you will be asked if you want to install portable version.

If you have an access to other computer just for test, you could only install MM and this add-on on it, and copy the current database file to it, but you don't need to copy media files to it to be able to export playlist files, assuming you have ticked off the "Exclude: Unavailable" option.

Did you try to export nodes from My Computer branch?

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[M

by buetthead » Tue Nov 21, 2017 8:50 am

Ok, I tried all of the steps you suggested,
-turned off 'exlude..'
-export to differnet drives (SSD, HDD, thumb-flash)
-optimized database
-I think I understand the bit about 'copying media files vs playlist export'

exept a new portable install.

I will do that and report back. Need to do some reading on how to do that... Might just try to find a different PC and move everything over...

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[M

by ZvezdanD » Tue Nov 21, 2017 2:01 am

I understood that you are exporting playlist files to the same drive with media files, which is G:, which is HDD, but now you say that you are exporting to SSD. Which of that two is true?

Anyway, how about this: just untick "Exclude files: Unavailable" option to disallow testing of media files and try to export playlist files to different disks, maybe even to some external one, like USB flash drive. If that doesn't change anything, then try to install portable version of the program to some another drive and copy your current database file to it. Maybe your drive on which you have the program and database is faulty one.

You could also try to export nodes from My Computer branch having media files, instead of nodes from Playlists branch. If that goes fast and well, than maybe you have corrupted database file and maybe it could help if you optimize it.

By the way, as I said, this add-on will not even copy media files unless you choose the mentioned option. If you want just to export playlist files, do not use that "... & Copy Media Files" option.

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[M

by buetthead » Mon Nov 20, 2017 6:35 pm

Sorry, I cannot edit my last post (pending for approval...?!)

I should not do this kind of stuff late at night ;-) I misunderstood what you said about the exclude missing files. The option is unticked now, but sadly it does not make a difference.

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[M

by buetthead » Mon Nov 20, 2017 6:18 pm

Sorry, I was unclear. I should have said copied instead of 'moved'.
ZvezdanD wrote:You still didn't try my suggestion to turn off the "Exclude files: Unavailable" option, while I expect that it is a main reason for the slow export. You see, with that option turned on, the add-on tests the existence of each media file and, if you have slow or problematic drive, that testing will slow it down. Also, try to export playlist files to the SSD, i.e. C: drive.
Seems I don't understand the UI... The box "exclude files: unavailable IS ticked" (as in my above screenshot) Does it have to be un-ticked???

As for the drive: I am exporting to the SSD.

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[M

by ZvezdanD » Mon Nov 20, 2017 2:49 pm

This add-on doesn't move media files. It could copy media files if you choose the "Export Child Nodes to Playlist Files & Copy Media Files" option, but it will not move them.

Yes, the "Export to M3U" is a built-in MM command. If it is just as slow, and if you are getting errors saying that it is "unable to create directory", then it is very probably a problem with your drive. You should make a backup of it as soon as possible. And try some more refined program than CHKDSK.

You still didn't try my suggestion to turn off the "Exclude files: Unavailable" option, while I expect that it is a main reason for the slow export. You see, with that option turned on, the add-on tests the existence of each media file and, if you have slow or problematic drive, that testing will slow it down. Also, try to export playlist files to the SSD, i.e. C: drive.

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[M

by buetthead » Mon Nov 20, 2017 10:00 am

Hm, it keeps getting stranger: I did a re-rum with the settings you recommended (see link). It was going somewhat faster at first, until I got an error saying 'unable to create directory...'. Upon selecting retry, it was going blazing fast but also moving the actual mp3s along, too.

I did run CHCKDSK, but the drives seemed fine. (System on SSD 'C:', Data on HDD 'G:'- all drives internal SATA)

While the script runs, I noticed the entire machine becoming really unresponsive.

https://www.dropbox.com/s/z8ijvu3ztoh3a ... 2.JPG?dl=0

EDIT: Just tried to export a single playlist 'export to M3U', which I am assuming is built into MM and not using the script. It runs just as slow :-(

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[M

by ZvezdanD » Sun Nov 19, 2017 6:12 pm

Before I write a "debug" version of the script which will log more data, could you tell me have you tried to turn off the "Exclude files: Unavailable" option? Also, you could try to turn on the "Skip export of: Autoplaylists" option.

I see from your screenshot that your media files are on the G: drive. Is that internal HDD?

Re: Export/Create Playlists 4 Child Nodes 4.0 (2013-07-10)[M

by buetthead » Sun Nov 19, 2017 4:41 pm

Ok, so here is the link to the logfile. I wonder if the event-logger is set up correctly. Seems to me it is not showing a lot of information?!

https://www.dropbox.com/s/ptb0f3bjpcywd ... r.csv?dl=0

EDIT: added a PSR-file to show what I'm doing to make sure I'm not missing anything obvious
https://www.dropbox.com/s/bly6flw9ufhrj ... t.zip?dl=0

Top