|
| Author |
Message |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 448 Location: Los Angeles, CA
|
Posted: Sat Feb 09, 2008 9:54 pm Post subject: New: Limit shares which appear on certain TiVos. |
|
|
I added a new feature to my branch today. I figure those who are working with kidzone may also find it beneficial.
Adapted from ticket #32:
There is now a share option available under any [_tivo_...] section. This option takes a comma separated list of available shares. Only the shares listed will appear on that specific tivo. Incorrect shares are ignored.
For example, the following conf file would be used to prevent share Adult from being seen on the TiVo with a tsn=12345, only Movies and Photos would be seen on this TiVo. Adult would still be visible on ALL other TiVos in the network.
[_tivo_12345]
shares = Movies, Photos
[Adult]
type = video
path = /store/Adult
[Movies]
type = video
path = /store/Movies
[Photos]
type = photo
path = /store/Photos
[Server]
debug = true
ffmpeg = /usr/bin/ffmpeg
hack83 = true
port = 9032 |
|
| Back to top |
|
 |
rjmitche
Joined: 05 Jan 2008 Posts: 41
|
Posted: Sat Feb 09, 2008 11:09 pm Post subject: |
|
|
Excellent. Thanks.
I've been thinking about asking about this exact feature. No need for all of the shares to appear on the TiVo dedicated to the kids.
I've been sort of following wmcbrine's fork (for the subfolders stuff)... any chance of this feature being merged with the latest over there? |
|
| Back to top |
|
 |
reneg
Joined: 04 Jan 2008 Posts: 133
|
Posted: Sun Feb 10, 2008 3:44 am Post subject: |
|
|
| Thanks for folding this feature into a current release. I don't know if and when I would have gotten around to it. Just a note, YMMV if you are using the auto_subshares option and this option. |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 1333
|
Posted: Sun Feb 10, 2008 5:45 am Post subject: |
|
|
| rjmitche wrote: | I've been sort of following wmcbrine's fork (for the subfolders stuff)... any chance of this feature being merged with the latest over there? |
It's done. _________________ My pyTivo fork |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 448 Location: Los Angeles, CA
|
Posted: Sun Feb 10, 2008 11:46 pm Post subject: |
|
|
| reneg wrote: | Just a note, YMMV if you are using the auto_subshares option and this option. |
Yeah I thought about that, but I thought it should still work properly and block all subfolders of the parent share.
Can someone test this who uses auto_subshares and let me know what happens? |
|
| Back to top |
|
 |
tlc
Joined: 06 Jan 2008 Posts: 18
|
Posted: Wed Feb 13, 2008 6:08 pm Post subject: |
|
|
This feature appears to force shares to have different names. I can't remember if that's true without this feature.
I know I tried once to have a video share [ServerName] and a photo share [ServerName] which would have looked fine on my TiVos since they're seen in specific menu screens. I don't remember if it worked though.
tlc |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 448 Location: Los Angeles, CA
|
Posted: Wed Feb 13, 2008 6:49 pm Post subject: |
|
|
| tlc wrote: | I know I tried once to have a video share [ServerName] and a photo share [ServerName] which would have looked fine on my TiVos since they're seen in specific menu screens. I don't remember if it worked though. |
Umm I don't think this would be a good idea. I can't say off hand for sure that using the same name would have worked before. I doubt it would have. But using this feature it will certianly block both shares. But either way I don't think using the same name for 2 different shares is an advisable idea. |
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 279
|
Posted: Wed Feb 13, 2008 7:06 pm Post subject: |
|
|
No, that did not work.
I had a music and video share that even started with the same names,like:
MySvr
MySvr-Music
It got mad! |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 1333
|
Posted: Wed Feb 13, 2008 7:29 pm Post subject: |
|
|
| philhu wrote: | I had a music and video share that even started with the same names,like:
MySvr
MySvr-Music
It got mad! |
That should work OK now, since my patch to use exact matches instead of "startswith". However, identical share names would never have worked with any version. The share name is the only way pyTivo knows what you're asking for.
Although, in principle, it could go by the "Filter" parameter... but, it doesn't. _________________ My pyTivo fork |
|
| Back to top |
|
 |
rjmitche
Joined: 05 Jan 2008 Posts: 41
|
Posted: Sun Mar 30, 2008 9:10 pm Post subject: |
|
|
| Is there a way to use this to prevent ANY shares from showing up on a given TiVo? I've got pyTivo running on two pcs, I've also got two TiVos on two separate TVs. On the main TiVo/TV, I want all the shares from both instances of pyTivo to appear but, on the kids' TiVo/TV, I'd like them to only see one share from one of the instances of pyTivo. In order to accomplish this, I'd like to be able to specify something like shares = NONE under that [_tivo_tsn] section. I tried setting shares= to something that doesn't exist but, that didn't seem to work. |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 448 Location: Los Angeles, CA
|
Posted: Sun Mar 30, 2008 10:03 pm Post subject: |
|
|
Yeah I designed it to actually prevent all shares disappearing simply because there was a bad share name. You can add a blank share or just the admin share and it would do what you wanted.
For example:
| Code: | [_tivo_tsn]
shares = Admin |
Or:
| Code: | [_tivo_tsn]
shares = Nothing
[Nothing]
type = music |
|
|
| Back to top |
|
 |
rjmitche
Joined: 05 Jan 2008 Posts: 41
|
Posted: Mon Mar 31, 2008 12:15 am Post subject: |
|
|
| shares = Admin did the trick. Thanks! |
|
| Back to top |
|
 |
ebf
Joined: 22 Mar 2008 Posts: 133
|
Posted: Mon Mar 31, 2008 2:09 am Post subject: |
|
|
| rjmitche wrote: | Is there a way to use this to prevent ANY shares from showing up on a given TiVo? ... |
I did this via my Windows firewall... I limited the pyTiVo port to a single IP address-- the one TiVo I want to have access. This config method is probably easier. |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 448 Location: Los Angeles, CA
|
Posted: Mon Mar 31, 2008 2:43 am Post subject: |
|
|
| you can also do it through beacon I imagine too. |
|
| Back to top |
|
 |
ebf
Joined: 22 Mar 2008 Posts: 133
|
Posted: Mon Mar 31, 2008 2:45 am Post subject: |
|
|
| krkeegan wrote: | you can also do it through beacon I imagine too. |
I'm not sure what that means... |
|
| Back to top |
|
 |
|