XBMC Community Forum
[AppleTV2] MySQL database / library support? - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: iOS support (/forumdisplay.php?fid=137)
+---- Thread: [AppleTV2] MySQL database / library support? (/showthread.php?tid=91485)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26


- dazex - 2011-03-01 23:17

too funny.

Here's something for those with buffering problems to try.

I am thinking over what is unique about my setup that prevents the buffering problem from occuring. From a lot of post, it seems like it's rampart and I should encounter it. But I use my ATV2XBMC daily to serve videos for the kids and nightly for catching up on TV or movies. And despite it's beta status, it's working well.

One thing I do when I set up my SMB sources is always connect with a valid username/password. Even on server shares that is exposed to everyone. Not sure if that help or matters, but I am simply brainstorming here to see possible solutions.

Anyways, I even have a video of the process to demonstrate how I add my video sources. It works well for me: http://www.youtube.com/watch?v=dTBspxh7CgI

-dazex


- Memphiz - 2011-03-02 00:05

For the thumbs not loading in recently added script when using thumbnail substitution to a samba share see here:

http://forum.xbmc.org/showpost.php?p=739805&postcount=27


ipad remote thumb debug :( - transcender - 2011-03-02 01:51

Memphiz Wrote:@freaksworth

yes the substition works ... but the code that loads the thumbnails does support samba shares only in the atv2 branch

@Advocate

Wait after the merge from atv2 branch to trunk. After that maybe may patch for supporting samba shares when loading thumbnails will be available to the other plattforms aswell.

@transcender

show us the log via http://www.pastebin.com
@memphiz

My logs just have a ton of the perms err below.
Ive retried
special://profile
special://masterprofile
/var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/Music

Ive recreated share, full perms
I originally finally got working w/ special://profile but after going to cydia the other day I realized remote thumbs no longer working
http://pastebin.com/9UVixeTe


- Memphiz - 2011-03-02 09:27

@transcender

you definitly have a permission problem with your share... try to add the username and password to your substitution in the form

Code:
<to>smb://user:password@ip/share</to>

And in your log you didn't seem to even try to load a thumbnail. Did you go into the movie library here? The errors where coming from the init where it trys to create the thumbnail folders.

Nevertheless - permission problem here...


- transcender - 2011-03-02 17:39

Memphiz Wrote:@transcender

you definitly have a permission problem with your share... try to add the username and password to your substitution in the form

Code:
<to>smb://user:password@ip/share</to>

And in your log you didn't seem to even try to load a thumbnail. Did you go into the movie library here? The errors where coming from the init where it trys to create the thumbnail folders.

Nevertheless - permission problem here...

i had previously tried explicitly putting the creds in the path subs but that was also not successful. I'll retry messing with the share again.
In my previous troubleshooting had shown that when it errored before it errored during the path subs. to me it seems that the path subs isn't working not accessing the share. But you are correct I had not explicitly tried viewing any fanart/thumb directly, as i mentioned previously and as shown in log, its not working immediately indicative in the log, so I didnt see the need to.


- hernandito - 2011-03-03 04:22

I was able to do the substitution on my ATV2 with this:

Code:
<pathsubstitution>
<substitute>
<from>special://masterprofile/Thumbnails</from>
<to>smb://192.168.0.201/Media/Thumbnails/</to>
</substitute>
</pathsubstitution>

... as you can see, I have my central library in a samba share. Right now I can share my library between Win7 and ATV2.

In Windows I created a symlink to the folder. First I deleted my Thumbnails folder in /userdata. Then from within my /userdata folder I entered this:

Code:
mklink /D Thumbnails \\192.168.0.201\Media\Thumbnails

But I also have an XBMC Live machine... how do I go about creating a symlink to my samba share if that folder is not mounted by XBMC Live?

Thank you.


- zosky - 2011-03-03 08:24

hernandito Wrote:I also have an XBMC Live machine... how do I go about creating a symlink to my samba share if that folder is not mounted by XBMC Live?

IMO autoFS is the way to go.
it will auto-reconnect if anything happens
( server reboot / temporary network outage...)

a simpler solution would be to mount the SMB share permanently with smbFS or CIFS
then sim link it to the ThumbNails folder (just like you did in win)

Code:
rm -dr ~/.xbmc/userdata/Thumbnails
ln -s /path-to/mounted-SMB-share/Thumbs ~/.xbmc/userdata/Thumbnails



- Memphiz - 2011-03-03 10:32

transcender Wrote:iBut you are correct I had not explicitly tried viewing any fanart/thumb directly, as i mentioned previously and as shown in log, its not working immediately indicative in the log, so I didnt see the need to.

You should have tried thumbnails too ... your errors came up when it trys to create folders - which is write access. Loading thumbnails is loading them - so read only access. You should try if both fails Wink


- hernandito - 2011-03-03 16:18

zosky Wrote:IMO autoFS is the way to go.
it will auto-reconnect if anything happens
( server reboot / temporary network outage...)

a simpler solution would be to mount the SMB share permanently with smbFS or CIFS
then sim link it to the ThumbNails folder (just like you did in win)

Code:
rm -dr ~/.xbmc/userdata/Thumbnails
ln -s /path-to/mounted-SMB-share/Thumbs ~/.xbmc/userdata/Thumbnails


Thank you Zosky... I was able to do it the simple way thanks to your tip. I will look into AutoFS... sounds like the right approach... But the good news is that I have all my libraries synched.

Thanks to everyone on this thread!


- transcender - 2011-03-03 16:39

Memphiz Wrote:You should have tried thumbnails too ... your errors came up when it trys to create folders - which is write access. Loading thumbnails is loading them - so read only access. You should try if both fails Wink

Good point my friend. I always forget about the writes cause I do not plan on initiating any 'scrapes' from the iPad. But unfortunately alas both fail. I'd removed and redone shares and messed with permissions and still no success. Strange since was working then just updated xbmc on ipad. ugh.
I still think the log errors out when path subs werent working before i got the first time. I thought when it was it clearly stated that substitution which is no longer doing.