Playlist Export without duplicate track at desired location

Get answers about using the current release of MediaMonkey for Windows.

Moderator: Gurus

Playlist Export without duplicate track at desired location

Postby manaswin » Fri Oct 06, 2017 3:04 pm

I tried to find something similar but somehow not able to reach at correct place thus writing this new post here.

Playlist Export without duplicate files at desired folder

Example Album and tracks
Album 1 : Sholay (1975)
# File Name
1 Title Music.mp3
2 Yeh Dosti Hum Nahin.mp3
3 Koi Haseena.mp3
4 Holi Ke Din.mp3
5 Mehbooba Mehbooba.mp3

Album 2 : Julie (1975)
# File Name
1 Dil Kya Kare.mp3
2 Instrumental.mp3
3 My Heart Is Beating.mp3
4 Sancha Naam Tera.mp3
5 Yeh Raatein.mp3

Playlist 1 : My Favourite.m3u Contains following tracks

# Title
3 Koi Haseena.mp3
1 Title Music .mp3
3 My Heart Is Beating.mp3
1 Dil Kya Kare.mp3

Playlist 2 : Good Songs.m3u Contains
# Title

1 Dil Kya Kare.mp3
3 My Heart Is Beating.mp3
2 Instrumental.mp3
3 Koi Haseena.mp3

Desired Output for Tracks
Destination Folder as available in move to / copy to options including folder/path masking
Desired Output for Playlist = Desired Root Folder (Say Root) in which Track should be stored as follows :
Root
Julie (1975)
Dil Kya Kare.mp3
My Heart Is Beating.mp3
Instrumental.mp3

Sholay (1975)
Koi Haseena.mp3
Title Music.mp3
What I mean Output folder should only contains tracks once (and not duplicates) that's too in desired folder format.
Let me know if it is possible.
manaswin
 
Posts: 13
Joined: Mon Nov 07, 2011 12:28 am

Re: Playlist Export without duplicate track at desired locat

Postby Lowlander » Fri Oct 06, 2017 7:39 pm

If you sync you'll only get a file (same file on PC) copied once, even if it is on multiple Playlists. However it seems you have the file duplicated (2 Albums) in which case it isn't possible.
Lowlander (MediaMonkey user since 2003)
Lowlander
 
Posts: 43401
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Playlist Export without duplicate track at desired locat

Postby manaswin » Sat Oct 07, 2017 7:00 am

It is not about syncing but about export.
I think I have not explained well.
Trying to elaborate a bit:

Assume you have a nested playlist in Media Monkey. If you wish to export that collection to any desired location, Right now you have options like, Send To :
1. Folder (Move) :
2. Folder (Copy) :
3. Folder (Rip/Convert) :
But none of above will work in case of nested playlist, Those options will work with single playlist.
To achieve that I have Installed an add-on "Export/Import Playlists for Child Nodes" by Zvezdan Dimitrijevic.
Now you have option to export Child Nodes too through "Export Child Nodes to Playlist Files & Export Media Files" option.
It will export play list & media files for child nodes to desired location.
BUT, It will export all files structured as in Nested Playlist.
What I wish to achieve is, Export all Nested Playlist with media files but output folder should be customisable and consist only single occurrence of a track.
As example below:
Default Media Monkey Drive =M
M:/English/Album1/
Track1.mp3
Track2.mp3
Track3.mp3
Track4.mp3
Track5.mp3
M:/English/Album2/
Track1.mp3
Track2.mp3
Track3.mp3
Track4.mp3
Track5.mp3
M:/English/Album3/
Track1.mp3
Track2.mp3
Track3.mp3
Track4.mp3
Track5.mp3
M:/Hindi/Album7/
Track1.mp3
Track2.mp3
Track3.mp3
Track4.mp3
Track5.mp3
M:/Hindi/Album8/
Track1.mp3
Track2.mp3
Track3.mp3
Track4.mp3
Track5.mp3
M:/Hindi/Album9/
Track1.mp3
Track2.mp3
Track3.mp3
Track4.mp3
Track5.mp3

Nested Playlist
My Favourite
English Songs
Track1.mp3 from M:/English/Album1/
Track1.mp3 from M:/English/Album2/
Track2.mp3 from M:/English/Album1/
1990 Selected
Track1.mp3 from M:/English/Album1/
Track1.mp3 from M:/English/Album2/
Track2.mp3 from M:/English/Album1/
Track4.mp3 from M:/Hindi/Album8/
Track2.mp3 from M:/Hindi/Album7/

Desired exported output is as follows :
X:/Output/Album1/Track1.mp3
X:/Output/Album2/Track1.mp3
X:/Output/Album2/Track2.mp3
X:/Output/Album7/Track2.mp3
X:/Output/Album8/Track2.mp3
X:/Output/English Songs.m3u
X:/Output/1990 Selected.m3u
m3u files should refer files stored in output folder.
(Total 5 Media File & 2 m3u file)

At present through Add-on "Export/Import Playlists for Child Nodes" option "Export Child Nodes to Playlist Files & Export Media Files" you may find following output:
X:/Output/My Favourite/English Songs/Track1.mp3 # Copied from M:/English/Album1/
X:/Output/My Favourite/English Songs/Track1.mp3 # Copied from M:/English/Album2/
X:/Output/My Favourite/English Songs/Track2.mp3 # Copied from M:/English/Album1/
X:/Output/My Favourite/English Songs/English Songs.m3u
X:/Output/My Favourite/1990 Selected/Track1.mp3 # Copied from M:/English/Album1/ (Undesired Duplicate File)
X:/Output/My Favourite/1990 Selected/Track1.mp3 # Copied from M:/English/Album2/ (Undesired Duplicate File)
X:/Output/My Favourite/1990 Selected/Track2.mp3 # Copied from M:/English/Album1/ (Undesired Duplicate File)
X:/Output/My Favourite/1990 Selected/Track2.mp3 # Copied from M:/Hindi/Album7/
X:/Output/My Favourite/1990 Selected/Track4.mp3 # Copied from M:/Hindi/Album8/
X:/Output/My Favourite/1990 Selected/1990 Selected.m3u
(Total 8 Media File & 2 m3u file)
Last edited by manaswin on Sat Oct 07, 2017 8:11 am, edited 1 time in total.
manaswin
 
Posts: 13
Joined: Mon Nov 07, 2011 12:28 am

Re: Playlist Export without duplicate track at desired locat

Postby ZvezdanD » Sat Oct 07, 2017 7:49 am

I cannot try it right now, but maybe you could try what will happen if you turn on the Replace option in the Options dialog box and specify:
M:\\(English|Hindi)\\

and With:
X:\Output\

and turn on the Use regular expressions and Parent level options.

Note: regular expressions and double backslashes in the Replace string are needed because you want to replace two folders with single folder.
Magic Nodes 4.3.2/5.1 RegExp Find & Replace 4.4.8/5.1  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1/5.3.6  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.7/4.0  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.3/2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2
ZvezdanD
 
Posts: 3020
Joined: Thu Jun 08, 2006 7:40 pm

Re: Playlist Export without duplicate track at desired locat

Postby manaswin » Sat Oct 07, 2017 8:16 am

ZvezdanD wrote:I cannot try it right now, but maybe you could try what will happen if you turn on the Replace option in the Options dialog box and specify:
M:\\(English|Hindi)\\

and With:
X:\Output\

and turn on the Use regular expressions and Parent level options.

Note: regular expressions and double backslashes in the Replace string are needed because you want to replace two folders with single folder.


Aah, while you replied I modified last post, which may explain things a little better. Please do read once again and reply.
manaswin
 
Posts: 13
Joined: Mon Nov 07, 2011 12:28 am

Re: Playlist Export without duplicate track at desired locat

Postby ZvezdanD » Sat Oct 07, 2017 9:36 am

Well, if you export all your tracks into single folder, you would not have that problem. Maybe you could try to turn on the Replace and Use mask for specifying paths options with the next Replace string: x:\Output\<Album>\<Filename>.<Extension>
Magic Nodes 4.3.2/5.1 RegExp Find & Replace 4.4.8/5.1  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1/5.3.6  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.7/4.0  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.3/2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2
ZvezdanD
 
Posts: 3020
Joined: Thu Jun 08, 2006 7:40 pm

Re: Playlist Export without duplicate track at desired locat

Postby manaswin » Sat Oct 07, 2017 12:59 pm

ZvezdanD wrote:Well, if you export all your tracks into single folder, you would not have that problem. Maybe you could try to turn on the Replace and Use mask for specifying paths options with the next Replace string: x:\Output\<Album>\<Filename>.<Extension>


Tried but not achieved desired output.
Is it possible to export all mp3files in single folder even if a nested playlist is selected?
manaswin
 
Posts: 13
Joined: Mon Nov 07, 2011 12:28 am

Re: Playlist Export without duplicate track at desired locat

Postby ZvezdanD » Sat Oct 07, 2017 2:22 pm

manaswin wrote:Tried but not achieved desired output.

It could help if you write what you actually got. As I said, I cannot try it right now by myself.

manaswin wrote:Is it possible to export all mp3files in single folder even if a nested playlist is selected?

Did you try with the selected To single folder/playlist option?

The main purpose of the mentioned add-on is export (or import) of playlist files. The Export commands could be seen as an extension to the built-in Send to / M3U/XSPF playlist menu command, but with added ability to get playlist files for all sub-nodes. The add-on's command that copy media files (beside of export of playlist files) was added long time ago on someones request and I haven't tested it in detail since then.
Magic Nodes 4.3.2/5.1 RegExp Find & Replace 4.4.8/5.1  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1/5.3.6  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.7/4.0  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.3/2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2
ZvezdanD
 
Posts: 3020
Joined: Thu Jun 08, 2006 7:40 pm

Re: Playlist Export without duplicate track at desired locat

Postby Lowlander » Sat Oct 07, 2017 2:28 pm

If you use Auto-Organize Files set to Copy and export to M:\Music\<Artist> - <Title> it should only copy 1 file per Artist & Title combination even if multiple exist in the organize list (it will warn of duplicates).
Lowlander (MediaMonkey user since 2003)
Lowlander
 
Posts: 43401
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Playlist Export without duplicate track at desired locat

Postby ZvezdanD » Sat Oct 07, 2017 2:36 pm

Yeah, I forgot to mention, I added the mentioned command for copying media files to the add-on when MM 3.0 was actual because that version didn't have Copy option in the Auto-Organize dialog. After MM 3.1 got that option, the add-on's command lost its significance.
Magic Nodes 4.3.2/5.1 RegExp Find & Replace 4.4.8/5.1  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1/5.3.6  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.7/4.0  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.3/2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2
ZvezdanD
 
Posts: 3020
Joined: Thu Jun 08, 2006 7:40 pm

Re: Playlist Export without duplicate track at desired locat

Postby manaswin » Mon Oct 09, 2017 8:21 am

Lowlander wrote:If you use Auto-Organize Files set to Copy and export to M:\Music\<Artist> - <Title> it should only copy 1 file per Artist & Title combination even if multiple exist in the organize list (it will warn of duplicates).

That's ok, but What I actually need is exporing media files from nested playlist. What you suggested is (in my knowledge) is applicable to a particular selected node, and media files therein.
manaswin
 
Posts: 13
Joined: Mon Nov 07, 2011 12:28 am

Re: Playlist Export without duplicate track at desired locat

Postby manaswin » Mon Oct 09, 2017 9:17 am

ZvezdanD wrote:Did you try with the selected To single folder/playlist option?

In such case It will make folder for each nested playlist.

There are two available options

1
[Radio Button] To nested folders/plists
[Check Box] Parent levels
If check box selected, It will export m3u's in root (Parent Folder)/media files in nested folder.
If check box not selected, It will export m3u's in nested folder/media files in nested folder.

2
[Radio Button] To single folder/plists
[Check Box] Join folder levels
It will export m3u's in desired location / media files in separate folder for each nested playlist.
if folder join enabled it will export m3u's in desired location / media files in separate folder same as above but folder name will be joined with parent playlist name and each subsequent playlist name.

Basically both options delivering almost same output only folder name is being modified if you select folder join option.

If you modify this option to Actual single folder option it will make more sense ie
All playlist and media files in single folder. This way duplicates will be removed automatically.
Here you can introduce naming folder name for media files keeping m3u's in root (but this is optional).
manaswin
 
Posts: 13
Joined: Mon Nov 07, 2011 12:28 am

Re: Playlist Export without duplicate track at desired locat

Postby Lowlander » Mon Oct 09, 2017 10:52 am

M:\Music\<Artist> - <Title>will export in a flat structure no matter where files are from in your Library. The key here is that this would cause MediaMonkey to overwrite files with the same Artist - Title combo, but for example different Albums.

Note that you'll need to remove the empty Playlists which unfortunately is a one-by-one job (there may be an Addon for removing empty Playlists).
Lowlander (MediaMonkey user since 2003)
Lowlander
 
Posts: 43401
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Playlist Export without duplicate track at desired locat

Postby manaswin » Wed Oct 11, 2017 10:08 am

Lowlander wrote:M:\Music\<Artist> - <Title>will export in a flat structure no matter where files are from in your Library. The key here is that this would cause MediaMonkey to overwrite files with the same Artist - Title combo, but for example different Albums.

Note that you'll need to remove the empty Playlists which unfortunately is a one-by-one job (there may be an Addon for removing empty Playlists).

How can someone export nested playlist (Apart from add-on by ZvezdanD)? Is there any native command to do so?
As far ass add-on concerned where to put "M:\Music\<Artist> - <Title>" and what other options to be checked, can you please elaborate a little.
manaswin
 
Posts: 13
Joined: Mon Nov 07, 2011 12:28 am

Re: Playlist Export without duplicate track at desired locat

Postby Lowlander » Wed Oct 11, 2017 10:17 am

manaswin wrote:As far ass add-on concerned where to put "M:\Music\<Artist> - <Title>" and what other options to be checked, can you please elaborate a little.
See: http://www.mediamonkey.com/wiki/index.p ... enames/4.0
Lowlander (MediaMonkey user since 2003)
Lowlander
 
Posts: 43401
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Next

Return to Need Help? (mmw)

Who is online

Users browsing this forum: Google [Bot] and 22 guests