-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchgAbsRef.py
More file actions
34 lines (28 loc) · 1.32 KB
/
chgAbsRef.py
File metadata and controls
34 lines (28 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/python
# -*- coding: utf-8 -*-
import glob
import functions as fun
# #############################################################################
# This script copies the files from an m3u playlist into a desired folder,
# along with a new m3u with relative path to the destination.
# -----------------------------------------------------------------------------
# iPth: Input path where the m3u file(s) is/are located
# oPth: Output path for the new m3u file
# bOld: Base music library path
# bNew: New base music library path
# #############################################################################
iPth = '/home/chipdelmal/Documents/Github/pyDroid/playlist/iTunes/'
oPth = '/media/hdd/Music/'
bOld = '/Users/glados/Music/Music/Media.localized/'
bNew = '/media/hdd/Music/'
# #############################################################################
# Single
# #############################################################################
pName = '4&5.m3u'
fun.fixPlistReference(iPth + pName, oPth, bOld, bNew, ClnPath=True)
# #############################################################################
# Batch
# #############################################################################
# allPlsts = glob.glob(iPth + '*.m3u')
# for plst in allPlsts:
# fun.fixPlistReference(plst, oPth, bOld, bNew, ClnPath=True)