![]() |
|
Phoenix This forum is for discussing the user-created Phoenix custom interface for SageTV. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Menu to a specific video folder
I think I'm close, but am obviously doing something wrong. For an example I'm going to use my vacation videos which are on e:\media\video\vacation. \media\video is defined in my import settings. Normally when I go to imported videos, it pulls up a list of folders in \media\video. I want a menu item to go specifically to the vacation folder.
I copied vfs.xml to the userdata/phoenix/vfs folder and added this to the end of the file: Code:
<views> <view name="vacationvideos" label="Vacation" flat="false"> <option name="root" value="/media/video/vacation/"/> <description>Vacation Videos</description> <tag value="video"/> <view-source name="sagevideoimportsv7"/> <presentation> <sort by="title"> <option name="folders-first" value="false"/> </sort> </presentation> </view> <tag value="vacationvideos" label="Vacation"/> I created an xml for the menu named 'vacation.xml' and placed it in the userdata menus: Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE menus SYSTEM "menus.dtd"> <menus> <fragment parentMenu="phoenix.menu.lz.videos" insertBefore="phoenix.menu.lz.videos.blueraydefaultbrowser"> <menuItem label="Vacation" name="vacationvideos" visible="true"> <description>VacationVideos</description> <eval>AddGlobalContext("DefaultView","phoenix.view.default.videofolders" )</eval> <screen name="Phoenix Universal Media Browser" /> </menuItem> </fragment> </menus> Any suggestions welcome. I'm wondering if I'm doing this the hard way. Since when I go to Video Imports I can see the folder, is there a simpler way to go to (however I would write it) Video Imports\Vacation rather than the base Video Imports? Or am I doing it the right way, just incorrectly? ![]() |
#2
|
||||
|
||||
For the view, vacationvideos, the "root" option is a path that is relative to the view's contents. Views have their own filesystem, so if your import is \media\video and there is a subfolder for "vacation" then you'd set the root to "vacation", which if a folder relative the view's root folder.
The sagevideoimportsv7 source has been deprecated and you should use, phoenix.view.default.videofolders. For testing/building views you might want to use bmt to see if the view contents are correct before you start on the menu. I think based on what you said, your view would look like this... Code:
<views> <view name="lucasbuck.vacationvideos" label="Vacation" flat="false"> <option name="root" value="vacation/"/> <description>Vacation Videos</description> <tag value="video"/> <view-source name="phoenix.view.default.videofolders"/> <presentation> <sort by="title"> <option name="folders-first" value="false"/> </sort> </presentation> </view> Once the view is working, you can then work on the fragment. It think you have it mostly working, but you need to specify your view name. Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE menus SYSTEM "menus.dtd"> <menus> <fragment parentMenu="phoenix.menu.lz.videos" insertBefore="phoenix.menu.lz.videos.blueraydefaultbrowser"> <menuItem label="Vacation" name="lucasbuck.menuitem.vacationvideos" visible="true"> <description>Vacation Videos</description> <eval>AddGlobalContext("DefaultView","lucasbuck.vacationvideos" )</eval> <screen name="Phoenix Universal Media Browser" /> </menuItem> </fragment> </menus>
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
|||
|
|||
Stupid questions:
- In the userdata I save the whole original vfs.xml, not just the part with my view code? - Should my vfs tag be: <tag value="lucasbuck.vacationvideos" label="Vacation"/> - What should the file name be that I save the menu xml to? Here's what' s happening. When I navigate to 'vacation' on the menu, it pulls up a single folder 'Sage Video Imports by Folder'. If I click on that it pops up the screen with the film strip and I can choose browse. Then it just goes into the root again. So I end up in the same place, just more steps! ![]() I do have two import paths that are media\videos. Ones on D: ones on E: if that makes a difference. It's pulling everything from both. Thanks again for the help. This would be great if I can get it setup right. |
#4
|
||||
|
||||
Quote:
You don't need a <tag> at all. Those are mainly used internally (although there is nothing stopping you from using them if you understand how to use them) In the userdata area, you just save YOUR additions, not the entire file. ie, your entire file would probably look like this... Code:
<!DOCTYPE vfs SYSTEM "vfs.dtd"> <vfs> <views> <view name="lucasbuck.vacationvideos" label="Vacation" flat="false"> <option name="root" value="vacation/"/> <description>Vacation Videos</description> <tag value="video"/> <view-source name="phoenix.view.default.videofolders"/> <presentation> <sort by="title"> <option name="folders-first" value="false"/> </sort> </presentation> </view> </vfs>
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#5
|
|||
|
|||
In BMT if I go to the Vacation view, all it pulls up is 1 item. 'Sage Video Imports by Folder'. Inside it has 160 items. Inside of it are things it has pulled from both the D: and E: media\video folders.
Probably a dumb question, but I noticed the add view to menu in BMT. If I navigate to that folder in BMT, can I add it directly to a menu that way? Oh, and where is the view manager in Phoenix? I missed that. |
#6
|
||||
|
||||
I think this is the code you would want. Be aware that the root is case sensitive I believe. Check how it appears in BMT to make sure you're pointing to the correct folder.
Code:
<view name="lucasbuck.vacationvideos" label="Vacation" flat="false"> <option name="root" value="/vacation/"/> <option name="children-only" value="true"/> <description>Vacation Videos</description> <tag value="video"/> <view-source name="phoenix.view.default.videofolders"/> <presentation> <sort by="title"> <option name="folders-first" value="false"/> </sort> </presentation> </view> |
#7
|
|||
|
|||
Okay, I've played and played, it's worked then it would quit. I think I finally have it using Wrems code, and thank you so much. But I have a question about:
<option name="children-only" value="true"/> Does that just block videos that are rated certain things? I took that line out (no kids, so I don't bother with the parental controls) and it doesn't work. It just takes me to the Video Import folder. I leave that line in, and it works fine. That has me stumped. I've tested it over and over. Line in, works fine, line out, no go. Oh, and one problem was I wasn't closing with </views> Duh Last edited by lucasbuck; 11-27-2011 at 06:42 PM. |
#8
|
||||
|
||||
The children it is talking about there are the children of the folder. Not the 2 legged ones that run around and watch cartoons.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#9
|
|||
|
|||
Okay, so I'm an idiot!
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Request: Folder & View Filters to TV Menu | disco340 | Diamond | 1 | 03-12-2011 06:27 AM |
Adding custom main menu item -Video Folder or Category | wado1971 | SageTV v7 Customizations | 0 | 08-10-2010 02:58 PM |
Screen Saver - photos from specific folder? | timg11 | SageTV Customizations | 3 | 12-15-2009 11:01 PM |
Main Menu link to folder? | flightman | SageMC Custom Interface | 13 | 09-11-2009 07:22 AM |
Assign Recording to specific folder? | Brent | SageTV Software | 11 | 12-18-2008 02:43 PM |