Kodi Community Forum

Full Version: Issues with streaming to other devices - Sources?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i have a strange bug and hope someone knows the solution.

I'm using Yatse as my MP3 Player on my Phone, but after i reinstalled xbmc, I can't download any albums localy (Error 401: Unauthorized)

Same with a Windows8 App, I can't Stream any Videos or MP3's from my Openelec. Same with the Chorus WebUi. When I click "download the song", it redirects me to this link and gives me a network error:
PHP Code:
http://192.168.0.13/vfs/%2fvar%2fmedia%2fSPEICHER%2fMusik%2fArcade%20Fire%2fFuneral%2f01.Arcade%20Fire-Neighborhood%20%231%20%28Tunnels%29.mp3 
But the link is correct, my media is in var/media/SPEICHER/Musik

I found somewhere that my sources may not ne configured the right way. I never used "add source", the usb hdd was listed under video sources and i just right clicked on the folder and did "scan folder to library" If I look into my sources.xml it looks like this:

PHP Code:
<sources>
    <
programs>
        <default 
pathversion="1"></default>
    </
programs>
    <
video>
        <default 
pathversion="1"></default>
        <
source>
            <
name>Videos</name>
            <
path pathversion="1">/storage/videos/</path>
            <
allowsharing>true</allowsharing>
        </
source>
        <
source>
            <
name>TV Shows</name>
            <
path pathversion="1">/storage/tvshows/</path>
            <
allowsharing>true</allowsharing>
        </
source>
        <
source>
            <
name>HD Filme</name>
            <
path pathversion="1">/media/3TBPlatte/HD Filme/</path>
            <
allowsharing>true</allowsharing>
        </
source>
    </
video>
    <
music>
        <default 
pathversion="1"></default>
        <
source>
            <
name>Music</name>
            <
path pathversion="1">/storage/music/</path>
            <
allowsharing>true</allowsharing>
        </
source>
    </
music>
    <
pictures>
        <default 
pathversion="1"></default>
        <
source>
            <
name>Pictures</name>
            <
path pathversion="1">/storage/pictures/</path>
            <
allowsharing>true</allowsharing>
        </
source>
    </
pictures>
    <
files>
        <default 
pathversion="1"></default>
    </
files>
</
sources

So, my movie source is there (HD-Filme on 3TBPlatte), but my TV-Shows and Music Source is not defined. Still, in xbmc it's working perfect.

I really don't want to scrape everything new... Should I just add the entrys in sources.xml or is ist normal they're not showing up? Is this even the Problem?

Thank you for your help!!

\\EDIT:
Hm, ok, but links to the in the sources.xml defined source also don't work, like
PHP Code:
http://192.168.0.13/vfs/%2fvar%2fmedia%2f3TBPlatte%2fHD%20Filme%2fDie.Tribute.von.Panem.Catching.Fire%2fDie%20Tribute%20von%20Panem%20Catching%20Fire.mkv 
I have no Idea...
When having problems with Yatse you should contact me Smile

Anyway this is a known problem / limitation / feature of RPI (choose what you prefer :p )

rPi allow scraping and adding to database media that are not in a source with some default path, and this is bad for remotes since they do not have access after that.

You just need to add a source to /var/media with no content and no need to scrape, this will just allow remotes to access this path.

Maybe one day someone will fix this because it's number 1 support problem Wink
(2014-08-04, 17:04)Tolriq Wrote: [ -> ]You just need to add a source to /var/media with no content and no need to scrape, this will just allow remotes to access this path.

Hey man.

i have the same problem on my rpi.

So in my understanding, i only have to add:
PHP Code:
<sources>
...
 <
files>
  <default 
pathversion="1"></dafault>
  <
source>
   <
name>HDD EXT</name>
   <
path pathversion="1">/var/media</path>
   <
allowsharing>true</allowsharing>
  </
source>
 <
files>
</
sources

Is this right? Or should there me more/less?
Not an expert of doing it directly in xml files but sounds correct yes.
Hi
Sorry to re-open this feed but I have the same problem. I have added /media/ to my sources but that haven't changed anything (still error 401 when trying to download a TV show).
Could you help me please?
I'm running OSMC on a Raspberry Pi 2 and use Yatse (unlocked) on a Nexus 10 tablet.
Thanks a lot