xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
 
Reply to this topicStart new topic
> Autoboot Xbmc Music Playlist At Startup (syntax Error), Trying to autoboot my playlist at startup, getting syntax error
Janglez334
post Jul 30 2010, 01:08 AM
Post #1


X-S Enthusiast


Group: Members
Posts: 9
Joined: 4-June 10
Member No.: 438810



Greetings, I've been trying to auto boot my XBMC's music playlist at startup but every Python Script I've tried ends in a syntax error. I've tried several this is my current one i found on a separate forum.


autoexec.py
-------------------
import xbmc
xbmc.executescript('q:\\scripts\\autoplay.py')



autoplay.py
----------------
import xbmc

pls = xbmc.playlist(0) * * * * * * * * * * * * * * * * * * * ##0 should be music playlist and 2 should be video playlist... not tested
try:
* *pls.load("f:\\Applications\\XBMC\\UserData\\playlists\\music\\x.m3u/")
except:
* *pls.load("q:\\UserData\\playlists\\music\\x.m3u") * ## always put twice \ for each dirs

pls.shuffle() * * * * * * * * * * * * * * * * * * * * * * * * * ## delete this line if you don't want random songs to be played from your given playlist
xbmc.player().play(pls) * * * * * * * * * * * * * * * * * *## play the playlist





I've tried everything i could possibly think of, when i run the autoplay.py in XBMC it gives me a "ERROR Script Failed autoplay.py " i check the XBMC.log and it states that there's an invalid syntax.



ERROR: Error Contents: ('invalid syntax', ('Q:\\scripts\\autoplay.py', 3, 26, 'pls = xbmc.playlist(0) * * * * * * * * * * * * * * * * * * * ##0 should be music playlist and 2 should be video playlist... not tested\n'))
19:36:20 M: 40939520 ERROR: File "Q:\scripts\autoplay.py", line 3
pls = xbmc.playlist(0) * * * * * * * * * * * * * * * * * * * ##0 should be music playlist and 2 should be video playlist... not tested



I have the latest XBMC installed and I've tried over 3 separate codes and none of them work and ideas?
Thanks

This post has been edited by Janglez334: Jul 30 2010, 01:10 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
cozmo72
post Sep 18 2011, 11:08 PM
Post #2


X-S Member
*

Group: Members
Posts: 94
Joined: 4-June 10
Member No.: 438813



hey buddy, you dont need to install a plugin, just go into skin settings/general, scroll down to play playlist at start up and your sorted. which skin are you using? i use transparency! v2.11 and the music starts up everytime without fail. let me know how you get on
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 22nd May 2013 - 06:36 AM