How to get the XBMC Link to work?

Jul 18, 2013 at 4:59 AM
Great feaure. But I can not get it to work. Can you give an example what to enter in the XBMC MC MovieFolderMappings? Is this the smb path?
Coordinator
Jul 18, 2013 at 5:06 AM
If you map MC to look for movies at
z:\movies
but XBMC looks at
192.168.0.50\volume_1\movies

Then set like this, else, if MC and XBMC both look at z:\movies, click same.

Er, hope that explains it...
Jul 18, 2013 at 5:23 AM
Thanks for your response, but I still not get it, I keep getting
Movie Folder mappings set (NB Actual paths not validated as applicable to XBMC PC) -> Failed

In sources.xml from XBMC I have
<video>
    <default pathversion="1"></default>
    <source>
        <name>Movies op Beertje</name>
        <path pathversion="1">smb://BEERTJE/Data/Movies/</path>
    </source>
</video>
In Media Companion
<XBMC_MC_FolderMapping MC="C:\Data\Movies\Films\Archief\HD" XBMC="BEERTJE\Data\Movies\Films\Archief\HD" />
<XBMC_MC_FolderMapping MC="C:\Data\Movies\Films\Archief\SD" XBMC="BEERTJE\Data\Movies\Films\Archief\SD" />
<XBMC_MC_FolderMapping MC="C:\Data\Movies\Films\HD" XBMC="BEERTJE\Data\Movies\Films\HD" />
Coordinator
Jul 18, 2013 at 5:29 AM
Edited Jul 18, 2013 at 5:30 AM
one suggestion, and one option
  1. try adding two'\' in front of XBMC path, ie '
 \\BEERTJE\Data\Movies\Films\HD
Acutally, this is a remote XBMC?, ie not on same pc as Media Companion?

Might have to wait for Phil to pop his head in on this one.
Jul 18, 2013 at 5:52 AM
Thanks a lot, think I'm understanding it now, but it still doesn;t work completely.

It is local, but because I use multiple XBMC's with one SQL db, I use an UNC

I now tried
<XBMC_MC_FolderMapping MC="C:\Data\Movies\Films\Archief\HD" XBMC="smb://BEERTJE/Movies op Beertje/Films/Archief/HD" />
All tests are passed, but this is what i see in the XBMC log

07:46:43 T:7496 WARNING: VIDEO::CVideoInfoScanner::Process directory 'smb:\BEERTJE\Movies op Beertje\Films\Archief\HD\Pipo de clown en de piraten van toen (1975)' does not exist - skipping scan.
07:46:43 T:7496 NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
07:46:44 T:9672 NOTICE: Thread Background Loader start, auto delete: false

It looks like the / are translated to \ and the first \ of the first \ is removed, otherwise it would work?
Coordinator
Jul 18, 2013 at 7:01 AM
Right, that seems to be a codeing issue that Phil needs to look at.

As mentioned, we need this feedback for bug fixing, making this new function strong.

It'll have to wait till Phil has a chance to check this discussion.
Developer
Jul 18, 2013 at 8:03 AM
Edited Jul 18, 2013 at 8:10 AM
Hi Bloksel,

Your MC movie folders should match your XBMC folders. Currently you have 3 MC folders and one XBMC folder. I suggest you replace the 3 MC movie folders with the one path your using in XBMC i.e. C:\Data\Movies or If MC can see smb://BEERTJE/Data/Movies then you could put that in. Then go into XBMC Link and configure your movie folder mapping. It should look like:

MC -> XBMC
C:\Data\Movies -> smb://BEERTJE/Data/Movies
or
smb://BEERTJE/Data/Movies -> smb://BEERTJE/Data/Movies (with this set up you can simple click the 'same' button)

One other point MySQL isn't currently supported. It will be but not in the first version ;-)

Phil
Jul 18, 2013 at 9:01 AM
Edited Jul 18, 2013 at 9:05 AM
Hi Phil,

Thanks for your reply. I see it's almost working, despite the different mappings, actually, I think you don't use them. The mysql part will make no difference. MC has to tell XBMC which path to update and XBMC will do his mysql trick after that. You see the same thing in Couch patato and Sickbeard, they send a command to update a path.

The problem is that they send the path (which I also entered in MC)
smb://BEERTJE/Data/Movies/Films/Archief/HD/Pipo de clown en de piraten van toen (1975)

where MC now sends a command to update the path (Despite the fact I entered it differently in MC)

smb:\BEERTJE\Data\Movies\Films\Archief\HD\Pipo de clown en de piraten van toen (1975)

I presume it would work, if the path was send correctly?
Developer
Jul 18, 2013 at 10:56 AM
What OS is your XBMC running on?
Jul 18, 2013 at 11:06 AM
The local version which I contact from MC is the latest official XBMC version running on Windows 8 64bit
Developer
Jul 18, 2013 at 11:48 AM
Edited Jul 18, 2013 at 11:49 AM
I've pushed a 'if your lucky' fix ;-) That just swaps back slash for forward slash in the XBMC path. If you want to test it pre-release then you'll need to build the project.

Add this to your config.xml to enable the setting: <XBMC_Link_Use_Forward_Slash>True</XBMC_Link_Use_Forward_Slash>

Unfortunately I haven't got a NAS box, hence can't test it.

If it fails, please include your log files as described in the 'Hints' section.
Jul 18, 2013 at 12:18 PM
Edited Jul 18, 2013 at 12:21 PM
Thanks alot for the effort,

You do not need a NAS to test it, simply create a share under Windows and you can access it with smb://127.0.0.1/sharename

Do you mean I have to ad it like below, because it doesn;t seem to do anything? I compiled d8303effa1e2
It contained the code
            If Preferences.XBMC_Link_Use_Forward_Slash Then
                result = result.Replace("\","/")
            End If
So it's the correct version.

But it also has to mantain the double / in smb://

<XBMC_TexturesDb>Database\Textures13.db</XBMC_TexturesDb>
<XBMC_ThumbnailFolders>Thumbnails</XBMC_ThumbnailFolders>
<XBMC_Link_Use_Forward_Slash>True</XBMC_Link_Use_Forward_Slash>
<XBMC_MC_MovieFolderMappings>
<XBMC_MC_FolderMapping MC="C:\Data\Movies\Films\Archief\HD" XBMC="smb://BEERTJE/Data/Movies/Films/Archief/HD" />
Jul 18, 2013 at 12:35 PM
Edited Jul 18, 2013 at 12:46 PM
I added a msgbox to display result and I see it

Now I get
smb:/BEERTJE/Data/Movies/Films/Archief/HD\Pipo de clown en de piraten van toen (1975)

The \ in the original path are still not replaced :-), if I remove the if statement it is, but still I see the same in the log

Scanning folder: smb:\BEERTJE\Data\Movies\Films\Archief\HD\Pipo de clown en de piraten van toen (1975)

Will add logs below
Jul 18, 2013 at 1:00 PM
2013-07-18 14:58:22,237 -  Q:  0  Buf Q:    0 - Transition Started
2013-07-18 14:58:22,237 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Movies            ] Event       : [Success                ] Action : [Timeout Timer stopped]
2013-07-18 14:58:22,237 -  Q:  0  Buf Q:    0 - Timeout Timer stopped
2013-07-18 14:58:22,238 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Movies            ] Event       : [Success                ] Action : [Passing back Mc only movies]
2013-07-18 14:58:22,238 -  Q:  0  Buf Q:    0 - Passing back Mc only movies
2013-07-18 14:58:24,841 -  Q:  0  Buf Q:    0 - Transition Completed
2013-07-18 14:58:39,907 -  Q:  0  Buf Q:    0 - Dispatching Event : [ Retry 0 MC_Movie_Updated C:\Data\Movies\Films\Archief\SD\1910-19\Tarzan of the Apes (1918)\Tarzan Of The Apes (1918 Elmo Lincoln).avi]
2013-07-18 14:58:39,907 -  Q:  0  Buf Q:    0 - Transition Started
2013-07-18 14:58:40,014 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [MC_Movie_Updated       ] Action : [Removing : Tarzan of the Apes]
2013-07-18 14:58:40,014 -  Q:  0  Buf Q:    0 - Removing : Tarzan of the Apes
2013-07-18 14:58:40,014 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Calling JSON RPC method "VideoLibrary.GetMovies"...
2013-07-18 14:58:40,036 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : JSON RPC response: {"id":3,"jsonrpc":"2.0","result":{"limits":{"end":1,"start":0,"total":1},"movies":[{"file":"smb://BEERTJE/Data/Movies/Films/Archief/SD/1910-19/Tarzan of the Apes (1918)/Tarzan Of The Apes (1918 Elmo Lincoln).avi","label":"Tarzan of the Apes","movieid":437}]}}
2013-07-18 14:58:40,037 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : XbmcVideoLibrary.VideoLibrary.RemoveMovie
2013-07-18 14:58:40,037 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Calling JSON RPC method "VideoLibrary.RemoveMovie"...
2013-07-18 14:58:40,207 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Buffer: [{"jsonrpc":"2.0","method":"VideoLibrary.OnRemove","params":{"data":{"id":437,"type":"movie"},"sender":"xbmc"}}]
2013-07-18 14:58:40,207 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Packet: [{"jsonrpc":"2.0","method":"VideoLibrary.OnRemove","params":{"data":{"id":437,"type":"movie"},"sender":"xbmc"}}]
2013-07-18 14:58:40,605 -  Q:  1  Buf Q:    0 - XbmcJsonRpc : JSON RPC response: {"id":4,"jsonrpc":"2.0","result":"OK"}
2013-07-18 14:58:40,605 -  Q:  1  Buf Q:    0 - State : [Ready                     ] Event       : [MC_Movie_Updated       ] Action : [Timeout Timer started]
2013-07-18 14:58:40,605 -  Q:  1  Buf Q:    0 - Timeout Timer started
2013-07-18 14:58:40,617 -  Q:  2  Buf Q:    0 - Transition Completed
2013-07-18 14:58:40,617 -  Q:  1  Buf Q:    0 - Dispatching Event : [ Retry 0 XBMC_Video_Removed ]
2013-07-18 14:58:40,617 -  Q:  1  Buf Q:    0 - Transition Started
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - State : [Wf_XBMC_Video_Removed     ] Event       : [XBMC_Video_Removed     ] Action : [Timeout Timer stopped]
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - Timeout Timer stopped
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - State : [Wf_XBMC_Video_Removed     ] Event       : [XBMC_Video_Removed     ] Action : [Deleting orphaned movie images from thumbnail folder]
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - Deleting orphaned movie images from thumbnail folder
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - Skipping cached file delete as expected 1-4 rows to be matched, but actually matched : [0]
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - Skipping cached file delete as expected 1-4 rows to be matched, but actually matched : [0]
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - State : [Wf_XBMC_Video_Removed     ] Event       : [XBMC_Video_Removed     ] Action : [Ready & waiting...]
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - Ready & waiting...
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - Transition Completed
2013-07-18 14:58:40,624 -  Q:  0  Buf Q:    0 - Dispatching Event : [ Retry 0 ScanFolder smb:\BEERTJE\Data\Movies\Films\Archief\SD\1910-19\Tarzan of the Apes (1918)]
2013-07-18 14:58:40,624 -  Q:  0  Buf Q:    0 - Transition Started
2013-07-18 14:58:40,628 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [ScanFolder             ] Action : [Timeout Timer started]
2013-07-18 14:58:40,628 -  Q:  0  Buf Q:    0 - Timeout Timer started
2013-07-18 14:58:40,628 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [ScanFolder             ] Action : [Scanning folder: smb:\BEERTJE\Data\Movies\Films\Archief\SD\1910-19\Tarzan of the Apes (1918)]
2013-07-18 14:58:40,628 -  Q:  0  Buf Q:    0 - Scanning folder: smb:\BEERTJE\Data\Movies\Films\Archief\SD\1910-19\Tarzan of the Apes (1918)
2013-07-18 14:58:40,628 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : XbmcVideoLibrary.VideoLibrary.Scan
2013-07-18 14:58:40,628 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Calling JSON RPC method "VideoLibrary.Scan"...
2013-07-18 14:58:40,631 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : JSON RPC response: {"id":5,"jsonrpc":"2.0","result":"OK"}
2013-07-18 14:58:40,631 -  Q:  0  Buf Q:    0 - Transition Completed
2013-07-18 14:58:40,673 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Buffer: [{"jsonrpc":"2.0","method":"VideoLibrary.OnScanStarted","params":{"data":null,"sender":"xbmc"}}]
2013-07-18 14:58:40,673 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Packet: [{"jsonrpc":"2.0","method":"VideoLibrary.OnScanStarted","params":{"data":null,"sender":"xbmc"}}]
2013-07-18 14:58:41,029 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Buffer: [{"jsonrpc":"2.0","method":"VideoLibrary.OnScanFinished","params":{"data":null,"sender":"xbmc"}}]
2013-07-18 14:58:41,029 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Packet: [{"jsonrpc":"2.0","method":"VideoLibrary.OnScanFinished","params":{"data":null,"sender":"xbmc"}}]
2013-07-18 14:58:41,029 -  Q:  0  Buf Q:    0 - Dispatching Event : [ Retry 0 XBMC_Video_ScanFinished ]
2013-07-18 14:58:41,029 -  Q:  0  Buf Q:    0 - Transition Started
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Video_ScanFinished] Event       : [XBMC_Video_ScanFinished] Action : [Timeout Timer stopped]
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - Timeout Timer stopped
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Video_ScanFinished] Event       : [XBMC_Video_ScanFinished] Action : [AddFetchVideoInfo]
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - AddFetchVideoInfo
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    1 - Transition Completed
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - Unbuffering Event : [ Retry 0 FetchVideoInfo ]
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - State : [Ready                     ] UnBuffering : [FetchVideoInfo         ] Args   : []
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - Dispatching Event : [ Retry 0 FetchVideoInfo ]
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - Transition Started
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [FetchVideoInfo         ] Action : [Fetching movies info...]
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - Fetching movies info...
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [FetchVideoInfo         ] Action : [Timeout Timer started]
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - Timeout Timer started
Jul 18, 2013 at 1:01 PM
2013-07-18 14:58:21,391 -  Q:  0  Buf Q:    0 - State : [NotConnected              ] Event       : [ConnectReq             ] Action : [Connecting...]
2013-07-18 14:58:21,440 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_ConnectResult     ] Event       : [Success                ] Action : [Fetching movies info...]
2013-07-18 14:58:21,440 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_ConnectResult     ] Event       : [Success                ] Action : [Timeout Timer started]
2013-07-18 14:58:22,237 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Movies            ] Event       : [Success                ] Action : [Timeout Timer stopped]
2013-07-18 14:58:22,238 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Movies            ] Event       : [Success                ] Action : [Passing back Mc only movies]
2013-07-18 14:58:40,014 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [MC_Movie_Updated       ] Action : [Removing : Tarzan of the Apes]
2013-07-18 14:58:40,605 -  Q:  1  Buf Q:    0 - State : [Ready                     ] Event       : [MC_Movie_Updated       ] Action : [Timeout Timer started]
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - State : [Wf_XBMC_Video_Removed     ] Event       : [XBMC_Video_Removed     ] Action : [Timeout Timer stopped]
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - State : [Wf_XBMC_Video_Removed     ] Event       : [XBMC_Video_Removed     ] Action : [Deleting orphaned movie images from thumbnail folder]
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - Skipping cached file delete as expected 1-4 rows to be matched, but actually matched : [0]
2013-07-18 14:58:40,618 -  Q:  1  Buf Q:    0 - State : [Wf_XBMC_Video_Removed     ] Event       : [XBMC_Video_Removed     ] Action : [Ready & waiting...]
2013-07-18 14:58:40,628 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [ScanFolder             ] Action : [Timeout Timer started]
2013-07-18 14:58:40,628 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [ScanFolder             ] Action : [Scanning folder: smb:\BEERTJE\Data\Movies\Films\Archief\SD\1910-19\Tarzan of the Apes (1918)]
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Video_ScanFinished] Event       : [XBMC_Video_ScanFinished] Action : [Timeout Timer stopped]
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Video_ScanFinished] Event       : [XBMC_Video_ScanFinished] Action : [AddFetchVideoInfo]
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - State : [Ready                     ] UnBuffering : [FetchVideoInfo         ] Args   : []
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [FetchVideoInfo         ] Action : [Fetching movies info...]
2013-07-18 14:58:41,030 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [FetchVideoInfo         ] Action : [Timeout Timer started]
2013-07-18 14:58:41,841 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Movies            ] Event       : [Success                ] Action : [Timeout Timer stopped]
2013-07-18 14:58:41,841 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Movies            ] Event       : [Success                ] Action : [Mc Main Busy Timer started]
2013-07-18 14:58:44,844 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [McMainBusyTimer_TimeOut] Action : [Passing back Mc only movies]
Developer
Jul 18, 2013 at 1:02 PM
Edited Jul 18, 2013 at 1:04 PM
smb://127.0.0.1/sharename didn't work for me.

Can sum up where the slashes are wrong & I'll take a look...Snippits of log file will help...

Ignore above - I hadn't seen your logs!
Jul 18, 2013 at 1:09 PM
In XBMC you can always add a source by browsing for a samba share and it will use forward / (even on windows). From the Windows RUN command you have to use the backwards \ one for the same share.
I use the UNC paths (Samba shares) on the local and remote systems. I only mantain 1 SQL library which my main Windows 8 system (where all my movies are), mantains. The other systems never update the db, which works very fast. I thought a lot of people use it this way?
Developer
Jul 18, 2013 at 1:22 PM
Yes I'm sure they do, it's an optimal setup, but overkill for some ;-)

Anyway another 'fix' pushed for you to try...
Jul 19, 2013 at 7:13 AM
It did not read the setting from config, I remarked the if statement, so the \ where replaced by / and also had to change the smb replacement, you turned it around :-)
Public Module LinkExt

    <Extension()> _
    Function FormatXbmcPath(ByVal sString As String) As String
        Dim s As String = sString

        'f Preferences.XBMC_Link_Use_Forward_Slash Then
        s = s.Replace("\", "/")
        'End If

        If s.IndexOf("smb:/") = 0 And s.IndexOf("smb://") = -1 Then
            s = s.Replace("smb:/", "smb://")
        End If

        Return s
    End Function
End Module
2013-07-19 09:10:27,062 -  Q:  0  Buf Q:    0 - Transition Started
2013-07-19 09:10:27,062 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Movies            ] Event       : [Success                ] Action : [Timeout Timer stopped]
2013-07-19 09:10:27,063 -  Q:  0  Buf Q:    0 - Timeout Timer stopped
2013-07-19 09:10:27,063 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Movies            ] Event       : [Success                ] Action : [Passing back Mc only movies]
2013-07-19 09:10:27,063 -  Q:  0  Buf Q:    0 - Passing back Mc only movies
2013-07-19 09:10:30,107 -  Q:  0  Buf Q:    0 - Transition Completed
2013-07-19 09:10:49,072 -  Q:  0  Buf Q:    0 - Dispatching Event : [ Retry 0 MC_Movie_Updated C:\Data\Movies\Films\Archief\SD\1910-19\Tarzan of the Apes (1918)\Tarzan Of The Apes (1918 Elmo Lincoln).avi]
2013-07-19 09:10:49,072 -  Q:  0  Buf Q:    0 - Transition Started
2013-07-19 09:10:49,200 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [MC_Movie_Updated       ] Action : [Failed to find movieid for [C:\Data\Movies\Films\Archief\SD\1910-19\Tarzan of the Apes (1918)\Tarzan Of The Apes (1918 Elmo Lincoln).avi] - Probably new to XBMC]
2013-07-19 09:10:49,201 -  Q:  0  Buf Q:    0 - Failed to find movieid for [C:\Data\Movies\Films\Archief\SD\1910-19\Tarzan of the Apes (1918)\Tarzan Of The Apes (1918 Elmo Lincoln).avi] - Probably new to XBMC
2013-07-19 09:10:49,208 -  Q:  2  Buf Q:    0 - Transition Completed
2013-07-19 09:10:49,208 -  Q:  1  Buf Q:    0 - Dispatching Event : [ Retry 0 XBMC_Video_Removed ]
2013-07-19 09:10:49,208 -  Q:  1  Buf Q:    0 - Transition Started
2013-07-19 09:10:49,209 -  Q:  1  Buf Q:    0 - State : [Wf_XBMC_Video_Removed     ] Event       : [XBMC_Video_Removed     ] Action : [Deleting orphaned movie images from thumbnail folder]
2013-07-19 09:10:49,209 -  Q:  1  Buf Q:    0 - Deleting orphaned movie images from thumbnail folder
2013-07-19 09:10:49,210 -  Q:  1  Buf Q:    0 - Skipping cached file delete as expected 1-4 rows to be matched, but actually matched : [0]
2013-07-19 09:10:49,210 -  Q:  1  Buf Q:    0 - Skipping cached file delete as expected 1-4 rows to be matched, but actually matched : [0]
2013-07-19 09:10:49,210 -  Q:  1  Buf Q:    0 - State : [Wf_XBMC_Video_Removed     ] Event       : [XBMC_Video_Removed     ] Action : [Ready & waiting...]
2013-07-19 09:10:49,210 -  Q:  1  Buf Q:    0 - Ready & waiting...
2013-07-19 09:10:49,210 -  Q:  1  Buf Q:    0 - Transition Completed
2013-07-19 09:10:49,210 -  Q:  0  Buf Q:    0 - Dispatching Event : [ Retry 0 ScanFolder smb:\BEERTJE\Data\Movies\Films\Archief\SD\1910-19\Tarzan of the Apes (1918)]
2013-07-19 09:10:49,210 -  Q:  0  Buf Q:    0 - Transition Started
2013-07-19 09:10:49,216 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [ScanFolder             ] Action : [Timeout Timer started]
2013-07-19 09:10:49,216 -  Q:  0  Buf Q:    0 - Timeout Timer started
2013-07-19 09:10:49,217 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [ScanFolder             ] Action : [Scanning folder: smb://BEERTJE/Data/Movies/Films/Archief/SD/1910-19/Tarzan of the Apes (1918)]
2013-07-19 09:10:49,217 -  Q:  0  Buf Q:    0 - Scanning folder: smb://BEERTJE/Data/Movies/Films/Archief/SD/1910-19/Tarzan of the Apes (1918)
2013-07-19 09:10:49,218 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : XbmcVideoLibrary.VideoLibrary.Scan
2013-07-19 09:10:49,218 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Calling JSON RPC method "VideoLibrary.Scan"...
2013-07-19 09:10:49,220 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : JSON RPC response: {"id":3,"jsonrpc":"2.0","result":"OK"}
2013-07-19 09:10:49,220 -  Q:  0  Buf Q:    0 - Transition Completed
2013-07-19 09:10:49,225 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Buffer: [{"jsonrpc":"2.0","method":"VideoLibrary.OnScanStarted","params":{"data":null,"sender":"xbmc"}}]
2013-07-19 09:10:49,225 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Packet: [{"jsonrpc":"2.0","method":"VideoLibrary.OnScanStarted","params":{"data":null,"sender":"xbmc"}}]
2013-07-19 09:10:52,875 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Buffer: [{"jsonrpc":"2.0","method":"VideoLibrary.OnUpdate","params":{"data":{"item":{"id":3463,"type":"movie"}},"sender":"xbmc"}}]
2013-07-19 09:10:52,875 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Packet: [{"jsonrpc":"2.0","method":"VideoLibrary.OnUpdate","params":{"data":{"item":{"id":3463,"type":"movie"}},"sender":"xbmc"}}]
2013-07-19 09:10:52,903 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Buffer: [{"jsonrpc":"2.0","method":"VideoLibrary.OnScanFinished","params":{"data":null,"sender":"xbmc"}}]
2013-07-19 09:10:52,903 -  Q:  0  Buf Q:    0 - XbmcJsonRpc : Rcv Packet: [{"jsonrpc":"2.0","method":"VideoLibrary.OnScanFinished","params":{"data":null,"sender":"xbmc"}}]
2013-07-19 09:10:52,903 -  Q:  0  Buf Q:    0 - Dispatching Event : [ Retry 0 XBMC_Video_ScanFinished ]
2013-07-19 09:10:52,903 -  Q:  0  Buf Q:    0 - Transition Started
2013-07-19 09:10:52,904 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Video_ScanFinished] Event       : [XBMC_Video_ScanFinished] Action : [Timeout Timer stopped]
2013-07-19 09:10:52,904 -  Q:  0  Buf Q:    0 - Timeout Timer stopped
2013-07-19 09:10:52,906 -  Q:  0  Buf Q:    0 - State : [Wf_XBMC_Video_ScanFinished] Event       : [XBMC_Video_ScanFinished] Action : [AddFetchVideoInfo]
2013-07-19 09:10:52,906 -  Q:  0  Buf Q:    0 - AddFetchVideoInfo
2013-07-19 09:10:52,906 -  Q:  0  Buf Q:    1 - Transition Completed
2013-07-19 09:10:52,907 -  Q:  0  Buf Q:    0 - Unbuffering Event : [ Retry 0 FetchVideoInfo ]
2013-07-19 09:10:52,907 -  Q:  0  Buf Q:    0 - State : [Ready                     ] UnBuffering : [FetchVideoInfo         ] Args   : []
2013-07-19 09:10:52,907 -  Q:  0  Buf Q:    0 - Dispatching Event : [ Retry 0 FetchVideoInfo ]
2013-07-19 09:10:52,907 -  Q:  0  Buf Q:    0 - Transition Started
2013-07-19 09:10:52,907 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [FetchVideoInfo         ] Action : [Fetching movies info...]
2013-07-19 09:10:52,907 -  Q:  0  Buf Q:    0 - Fetching movies info...
2013-07-19 09:10:52,907 -  Q:  0  Buf Q:    0 - State : [Ready                     ] Event       : [FetchVideoInfo         ] Action : [Timeout Timer started]
Jul 19, 2013 at 7:13 AM
I almost forgot: Thanks a lot!
Developer
Jul 19, 2013 at 8:03 AM
I've pushed an update to detect the slash direction. Can you give it a try?...

NB <XBMC_Link_Use_Forward_Slash>True</XBMC_Link_Use_Forward_Slash> not longer exists

FormatXbmcPath updated as well, lol.
Jul 19, 2013 at 1:48 PM
Great!!! everything works, but you had forgotten a /


Code has to be:
        If s.IndexOf("smb:/") = 0 And s.IndexOf("smb://") = -1 Then
            s = s.Replace("smb:/", "smb://")
        End If
To make an all working fix, not everyone is using smb://
http://wiki.xbmc.org/index.php?title=File_sharing

But I think most MC users will only use SMB?
Developer
Jul 19, 2013 at 3:22 PM
Damn /'s I must be allergic to them! ..function amended again..

On the supported protocol side, there's a couple of things maybe you can shed some light on...
  1. Do you know why one of the /'s go missing in the first place i.e. "smb://" goes to "smb:/" somewhere?
  2. From the wiki link, can you provide a list of protocol prefixes that you think we should support?
With a bit of team work, we'll get there!
Cheers
Phil
Jul 19, 2013 at 8:07 PM
Hi Phil,

Not had much time to look at it today, but I think the problem lies in this function in utilities.vb
Public Shared Function EnsureFolderExists(ByVal Path As String) As Boolean
        Dim Parts As String() = Split(IO.Path.GetDirectoryName(Path), "\")
        Dim currentPath As String = Parts(0)
        Dim addStart As Integer = 1

        If Left(Path, 2) = "\\" Then 'Network path
            currentPath &= "\" & Parts(1) & "\" & Parts(2) & "\" & Parts(3)
            addStart = 4
        End If

        For I = addStart To Parts.GetUpperBound(0)
            currentPath = IO.Path.Combine(currentPath & "\", Parts(I))

            If Not IO.Directory.Exists(currentPath) Then
                IO.Directory.CreateDirectory(currentPath)
            End If
        Next

        Return True
    End Function
The correct prefixes are:

afp://
ftp://
http://
nfs://
rss://
cifs://
sftp://
sling://
smb://
upnp://

The only one missing is webdav, I presume it is
webdav://
But I am not sure?

And for TV (But I don't think you nbeed that, because these are streams)
htsp://
hdhomerun://
rtv://
Jul 19, 2013 at 8:10 PM
Edited Jul 19, 2013 at 8:11 PM
Just thought, maybe it's better to just replace :/ by :// if not ://?
Developer
Jul 20, 2013 at 7:28 AM
Just thought, maybe it's better to just replace :/ by :// if not ://?
Yip, that's what I was thinking too. Just wanted to see the file protocol formats first to ensure they all follow the same format.

Anyway, the generic version has been pushed. Let us know how you get on.
Jul 20, 2013 at 12:33 PM
Tried some and all works now.

Great work!
Jul 20, 2013 at 12:35 PM
There is only one but... You loose the extra art, if you delete the movie, why is this necessary?
Developer
Jul 20, 2013 at 7:54 PM
Can you provide the steps to replicate the problem?
Jul 20, 2013 at 9:31 PM
I use logo.png and clearart etc (see fanart.tv) with my Movies. You send the delete and then the rescan command. You have to auto scan for the extra art after that.
Jul 21, 2013 at 9:39 AM
Isn't there a way to only request an update?
Developer
Jul 22, 2013 at 7:41 AM
Edited Jul 22, 2013 at 7:42 AM
There wasn't, but there is now...Go to XBMC Link and uncheck Delete images from XBMC cache
Jul 22, 2013 at 8:55 AM
Fixed! Thanks again.

Noticed something else.
Every time you save ore change a thumb in the fanart tab, the movie is updated, it only has to update as the main fanart changes.
Developer
Jul 22, 2013 at 11:21 AM
Every time you save ore change a thumb in the fanart tab, the movie is updated, it only has to update as the main fanart changes.
That's just how it works. It's only n/a to you because you don't use MC for your images.
In the future this may change, but there's many more important jobs that take priority.
Jul 23, 2013 at 4:54 AM
I understand.

BTW I meant the extrathumbs, if you delete them and rescan, XBMC will show you the previous one's. Nothing to do about that, it's a caching problem, you can not solve in MC.
Developer
Jul 23, 2013 at 7:33 AM
Added to to-do list - XBMC Link - Add - Delete from XBMC cache for Extra fanart\thumbs