Support and General Use > Theming and Appearance Customization

Submenus in 'New Podcasts' section?

<< < (2/4) > >>

bascule:
Because you want to do it by filepath and not tag, then you will need to have a number of separate formatting strings and/or menu items. I'm not sure if that's OK.


--- Quote from: pdedecker on March 10, 2007, 04:49:44 AM ---Of course, I have many more podcasts that I listen to, but you get the idea. :)

--- End quote ---
This is what concerns me, if you need as many formatting strings as you have different podcasts, it will be unworkable.

It would be really good to check the tagging and post back, because if they are well tagged, the job is a lot easier.

Unfortunately, I'm busy at the moment, but I will work on it...

pdedecker:

--- Quote from: bascule on March 10, 2007, 01:45:28 PM ---Unfortunately, I'm busy at the moment, but I will work on it...
--- End quote ---
I can understand.
--- Quote from: bascule on March 10, 2007, 01:45:28 PM ---This is what concerns me, if you need as many formatting strings as you have different podcasts, it will be unworkable.
--- End quote ---
Actually, I use these PodShow channel feeds which combine some podcasts into one larger feed.
--- Quote from: bascule on March 10, 2007, 01:45:28 PM ---It would be really good to check the tagging and post back, because if they are well tagged, the job is a lot easier.
--- End quote ---
I'll have to check that. I'm pretty sure that I can use the album tag to filter out the podcasts I need though.

bascule:
Without tags, it'll be messy like this:

--- Code: ---%menu_start "custom" "Podcasts"
"New DSC Podcasts" -> title = "fmt_podcast" ? filename ~ "/podcast/Daily Source Code" & playcount == "0"
"New Hellway Podcasts" -> title = "fmt_podcast" ? filename ~ "/podcast/Pacific Coast Hellway" & playcount == "0"
"New other Podcasts" -> title = "fmt_podcast" ? filename ~ "/podcast/other" & playcount == "0"
etc., etc...

--- End code ---

With tags, and assuming podcast name is in the album tag and show name is in the title:

--- Code: ---%menu_start "custom" "Podcasts"
"New Podcasts" -> album ? filename ~ "/podcast" & playcount == "0" -> title = "fmt_podcast"
"Old Podcasts" -> album ? filename ~ "/podcast" & playcount != "0" -> title = "fmt_podcast_old"

--- End code ---

pdedecker:
Can I add 'New podcasts' and 'Old podcasts' to the main menu of the database? If yes, why is this code not working:
--- Quote ---#! rockbox/tagbrowser/2.0

"New podcasts"  ==> "newPods"
"Archived podcasts"  ==> "oldPods"

# Un-listened to files sorted by duration, shortest files at the top
%format "fmt_podcast" "%08d%s (%s)" length title filename %strip = "8"
# Listened-to files sorted by playing order, most recently played at the top
%format "fmt_podcast_old" "%06d%s (%s)" lastplayed title filename %sort = "inverse" %strip = "6"

%menu_start "newPods" "New podcasts"
"Comedy Package" -> album ? filename ~ "/Podcasts/- Comedy Package - A PodShow Channel" & playcount == "0" -> title = "fmt_podcast"
"Technology Package" -> album ? filename ~ "/Podcasts/- Technology Package - A PodShow Channel" & playcount == "0" -> title = "fmt_podcast"
"Music Package" -> album ? filename ~ "/Podcasts/- Music Package - A PodShow Channel" & playcount == "0" -> title = "fmt_podcast"

%menu_start "oldPods" "Archived podcasts"
"Comedy Package" -> album ? filename ~ "/Podcasts/- Comedy Package - A PodShow Channel" & playcount != "0" -> title = "fmt_podcast_old"
"Technology Package" -> album ? filename ~ "/Podcasts/- Technology Package - A PodShow Channel" & playcount != "0" -> title = "fmt_podcast_old"
"Music Package" -> album ? filename ~ "/Podcasts/- Music Package - A PodShow Channel" & playcount != "0" -> title = "fmt_podcast_old"
--- End quote ---

bascule:
You can either:
Call your custom menu "custom" and it will always and only appear under the 'Custom view...' menu item. (I assume this is what you've done, as you mentioned custom view above)
or
You can make your custom menu into the root menu, replacing the original. Instructions for this are on the Wiki page. You obviously then have to have all the options you want in your custom menu, but the code could be copied from the tagnavi.config file.

EDIT: On second reading, I think you may mean that the code you posted is your whole tagnavi.config code? If it is then it will not work, as you are missing some of the required code items. Again, see the Wiki page linked in my sig - it tells you all you need to know.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version