Script and q: drive question + starting music
#1
ok so i have a bunch of scripts and they all are in the correct spots. i figured out how to launch them as well. one question i have though is whats the q:
i see its a mirror image of the f:\apps\xbmc where i installed it. also when i click on the script .py and they load when i leave them do i get memory back or do they stay loaded until i restart my xbmc?

lastly how does one save trailers i view and also make the music playlist .py stay open upon load

i see this in the .py


"configuration"
# ---------------------------------------- #

# change this to your playlist(s).
# written like this: ['path\\to\\plist1', 'to\\plist2', 'plist\\3']
playlist_files= ['f:\\apps\xbmc\albums\playlists\playlist.m3u', 'f:\\all.m3u']
# dirs(s) to traverse if playlist does not exist. nb: no trailing slash.
# written like this: ['path\\to\\dir1', 'to\\dir2', 'dir\\3']
music_dirs = ['e:\\media\\music', 'f:\\media\\music']
# shuffle playlist if this var equals 1.
shuffle_files = 1


# ---------------------------------------- #
# code
# ---------------------------------------- #

# function for adding files to playlist
def add_files(pl, dirname, names):
for filename in names:
if (os.path.isfile(dirname + "\\" + filename)):
add = 0

# check extension of file.
if (filename[-4:] == ".mp3"): add = 1
if (filename[-4:] == ".ogg"): add = 1
if (filename[-4:] == ".wav"): add = 1
if (filename[-5:] == ".flac"): add = 1

# if file is to be added, do it.
if (add == 1): pl.add(dirname + "\\" + filename)
elif (os.path.isdir(dirname + "\\" + filename)):
os.path.walk(dirname + "\\" + filename, add_files, pl)

# get music playlist from xbmc
plist = xbmc.playlist(0)
plist.clear()

# load playlist if it exists
for playlist_file in playlist_files:
if (os.path.isfile(playlist_file)):
plist.load(playlist_file)
# else, find all available music
else:
for music_dir in music_dirs:
os.path.walk(music_dir, add_files, plist)

# do the shuffle!
if (shuffle_files == 1): plist.shuffle()

xbmc.player().play(plist)


i still dont get it! what do i need to change. i created a playlist from music found on my computer that stream in smb. now what though. that playlist is found here
f:\\apps\xbmc\albums\playlists\playlist.m3u
#2
moving to the python-scripts support forum, please read the forum topics and post in the correct forum in the future.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Logout Mark Read Team Forum Stats Members Help
Script and q: drive question + starting music0