Guys
Correct me if I'm wrong but there seems to be a problem with latest version of script.
If I add smart playlist as home menu item, the script the old way, playlist plays instead of open.
Code:
<onfocus>RunScript(script.favourites,playlists=window)</onfocus>
If I use the new way
Code:
<onclick>RunScript(script.favourites,property=CustomMovies.7)</onclick>
I'm being asked to choose between play and open. Good, I choose open. However, when I click on this newly created item, nothing happens.
I have always used this
Code:
<onclick>$INFO[Skin.String(CustomMovies.7.Path)]</onclick>
to open item from Home page.
Just tested it in Xeebo Nightly 2.7.0 - same thing happens.
Any thoughts?
EDIT:
Seems that problem is related to non english smart playlist names. Here's the log:
Code:
00:09:25 T:2895274688 DEBUG: ExecuteXBMCAction : To ActivateWindow(10025,"special://profile/playlists/video/720 vy\xcc\x81be\xcc\x8cr.xsp",return)
00:09:25 T:2895274688 DEBUG: Activating window ID: 10025
00:09:25 T:2895274688 DEBUG: ------ Window Deinit (Home.xml) ------
00:09:25 T:2895274688 DEBUG: ------ Window Init (MyVideoNav.xml) ------
00:09:25 T:2895274688 INFO: Loading skin file: MyVideoNav.xml
00:09:25 T:2895274688 DEBUG: Load MyVideoNav.xml: 136.94ms
00:09:25 T:2895274688 DEBUG: Alloc resources: 140.00ms (137.02 ms skin load)
00:09:25 T:2895274688 DEBUG: CGUIMediaWindow::GetDirectory (special://profile/playlists/video/720 vy\xcc\x81be\xcc\x8cr.xsp)
00:09:25 T:2895274688 DEBUG: ParentPath = [special://profile/playlists/video/720 vy/xcc/x81be/xcc/x8cr.xsp/]
00:09:25 T:2895274688 ERROR: Error loading Smart playlist special://profile/playlists/video/720 vy\xcc\x81be\xcc\x8cr.xsp (failed to read file)
00:09:25 T:2895274688 ERROR: Previous line repeats 1 times.
00:09:25 T:2895274688 ERROR: GetDirectory - Error getting special://profile/playlists/video/720 vy\xcc\x81be\xcc\x8cr.xsp
00:09:25 T:2895274688 ERROR: CGUIMediaWindow::GetDirectory(special://profile/playlists/video/720 vy\xcc\x81be\xcc\x8cr.xsp) failed
00:09:27 T:2895274688 DEBUG: SDLKeyboard: scancode: 35, sym: 001b, unicode: 001b, modifier: 0
00:09:27 T:2895274688 DEBUG: OnKey: escape (f01b) pressed, action is PreviousMenu
00:09:27 T:2895274688 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
00:09:27 T:2895274688 DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
00:09:27 T:2895274688 DEBUG: CGUIWindowManager::PreviousWindow: Activate new
00:09:27 T:2895274688 DEBUG: ------ Window Init (Home.xml) ------
actual smart playlist name is "720 výběr".
BTW, thanks a lot for improving it Black. I still hate it that I have to edit a bunch of code to make it work the new way, but it is
so much easier to use that it was before your changes.