Charmed Quark Systems, Ltd. - Support Forums and Community
Sage Media Server driver (beta) - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: Driver Development (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=13)
+--- Thread: Sage Media Server driver (beta) (/showthread.php?tid=5497)



Sage Media Server driver (beta) - Dean Roddey - 03-28-2010

Yeh, that's the already expanded out values. He used the ^1 expansion control value, which insured that any slashes in the path wouldn't be escaped.


Sage Media Server driver (beta) - Fonceur - 03-28-2010

From the SageTV log:

WSP:\Media-storage\l\The Blind Side\The Blind Side.mkv

It seems the leading \\Media-storage is losing a \, so it won't find the file... Your CQC example is using E:\, can you post the sagetv_0.txt for it too?


Sage Media Server driver (beta) - George M - 03-28-2010

Fonceur Wrote:You could also try the templates included in the first post.

Then again, it is possible that something in the CQC upgrade broke something...

Tried the templates. Openig Sage_Movies gives me this error.

The TRefDeque<TElem> collection is empty

Then when I OK past that it gives me this:

Image "\User\Themes\Rain\Backgrounds\List Highlight 184x24" was not found. It must have been missed when the pack was created.


Sage Media Server driver (beta) - Fonceur - 03-28-2010

George M Wrote:Tried the templates. Openig Sage_Movies gives me this error.
That's because you have to load Sage_Main, which will load the rest... Otherwise you are bypassing a bunch of variable creations... Wink

Quote:Image "\User\Themes\Rain\Backgrounds\List Highlight 184x24" was not found. It must have been missed when the pack was created.
Actually, I should have stripped that one, need to find where it is used... Wink


Sage Media Server driver (beta) - George M - 03-28-2010

Fonceur Wrote:From the SageTV log:

WSP:\Media-storage\l\The Blind Side\The Blind Side.mkv

It seems the leading \\Media-storage is losing a \, so it won't find the file... Your CQC example is using E:\, can you post the sagetv_0.txt for it too?

That was confusing. I only have one instance of SageTV. The trace was from trying to start one movie and the log file was from another movie. Here is both trying to start the same movie.

TRC: Start Action
Global Vars=
GVar:MoviesCatCookie=NotFound
GVar:MovieLocation=\\Media-storage\l\The Blind Side\The Blind Side.mkv
GVar:ArtistScrollIndex=0
GVar:URListOfIDs=
GVar:URDate=
GVar:URTitle=
GVar:MovieSelected=False
GVar:MovieCookie=0,1,54,1
GVar:SelectedAlbum=
GVar:URChannel=
GVar:gvKBResult=
GVar:VideoDriver=SagePlayer3
GVar:gvKB=
GVar:VideoZone=Extender 2
GVar:URDescription=
GVar:MoviesCABFirstIndex=1
GVar:TVTopic=Schedule
GVar:MovieTitleCookie=0,1,54
GVar:VideoTopic=Movies
GVar:URActors=
GVar:URGenre=
GVar:MovieInfo_DispOnly=False
GVar:MoviesCategory=All Movies
GVar:URList=
GVar:SelectedArtist=
GVar:MoviesTitleCount=0
GVar:gvKBMessage=

CMD: 001. (3ms) - GlobalVars::SetVariable
P1=GVar:MovieSelected
P2=True

VAR: Set variable 'GVar:MovieSelected'
=True

CMD: 002. (3ms) - Devices::FieldWrite
P1=Variables.MovieSelected
P2=True
P3=True

CMD: 003. (17ms) - GlobalVars::SetVariable
P1=GVar:Client-Active
P2=Media-storage

VAR: Set variable 'GVar:Client-Active'
=Media-storage

CMD: 004. (17ms) - IntfViewer::Exit

TRC: End Action [Result=Success]
CMD: 011. (110ms) - If System::Equals
P1=True
P2=True

CMD: 012. (110ms) - Devices::FieldWrite
P1=SagePlayer.Transport
P2=Stop
P3=True

CMD: 013. (113ms) - Devices::FieldWrite
P1=SagePlayer.WatchShowPath
P2=\Media-storage\l\The Blind Side\The Blind Side.mkv
P3=True

CMD: 014. (131ms) - IntfViewer::InvokePopup
P1=\User\Q1-Popup-SageRemote
P2=255
P3=-1 -1


Sage Media Server driver (beta) - Fonceur - 03-28-2010

George M Wrote:P2=\Media-storage\l\The Blind Side\The Blind Side.mkv
That initial \\ is getting eaten by CQC...


Sage Media Server driver (beta) - Dean Roddey - 03-28-2010

I assume you must be using the value in GVar:MovieLocation in a command parameter without the "^1".


Sage Media Server driver (beta) - George M - 03-28-2010

Fonceur Wrote:That initial \\ is getting eaten by CQC...

So should it be like this?

Devices::FieldWrite(SageTV.WatchShowPath,\\%(MediaRTV:LocInfo),True)


Sage Media Server driver (beta) - George M - 03-28-2010

Dean Roddey Wrote:I assume you must be using the value in GVar:MovieLocation in a command parameter without the "^1".

Do you mean what the command to play the movie is? Is so I was using this:

Devices::FieldWrite(SageTV.WatchShowPath,%(Media RTV:LocInfo),True)

Are you saying that it would be better to use this?

Devices::FieldWrite(SageTV.WatchShowPath,%(GVar:MovieLocation),True)


Sage Media Server driver (beta) - Dean Roddey - 03-28-2010

Either would do, but in either case, you need to use the "^1" to prevent the escaping of slashes, so:

Devices::FieldWrite(SageTV.WatchShowPath,%(Media RTV:LocInfo, "^1"),True)