Support and General Use > Theming and Appearance Customization

Submenus in 'New Podcasts' section?

(1/4) > >>

pdedecker:
Let's say I have added this to my Database menu:
--- Quote ---#! rockbox/tagbrowser/2.0

# 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 "custom" "Podcasts"
"New Podcasts" -> title = "fmt_podcast" ? filename ~ "/podcast" & playcount == "0"
"Old Podcasts" -> title = "fmt_podcast_old" ? filename ~ "/podcast" & playcount != "0"
--- End quote ---
Can I change the code so that every show (Daily Source Code, Pacific Coast Hellway, ...) will have its own submenu in the 'New Podcasts' menu? Assume that I store every show in a different directory (for example: [root]/Podcasts/DailySourceCode/).

Llorean:
Does each show have a common tag, for example, album, that you can use to divide them by?

Otherwise, if you've got your filetree organized, why not browse by it?

pdedecker:
Because I want to seperate the new and old ones. Here's an example:

Database > Custom view... > New Podcasts > Daily Source Code > DSC #600
Database > Custom view... > New Podcasts > Pacific Coast Hellway > pch384
Database > Custom view... > New Podcasts > Pacific Coast Hellway > pch383
Database > Custom view... > Archived Podcasts > Daily Source Code > DSC #599
Database > Custom view... > Archived Podcasts > Pacific Coast Hellway > pch382
Database > Custom view... > Archived Podcasts > Pacific Coast Hellway > pch381
Database > Custom view... > Archived Podcasts > Pacific Coast Hellway > pch380
etc.


--- Quote ---Does each show have a common tag, for example, album, that you can use to divide them by?
--- End quote ---
It might, I'll have to check that. But I was thinking of filtering them by path.

bascule:
You can only filter the database view by using attributes of the files that are available. I'm not quite sure what criteria you are using to differentiate between New Podcasts and Archived Podcasts.

If you do it by pathname, i.e., physically moving 'Archived' podcast files to a separate folder, then you can use the filname to filter them as per ypur original example.

If the difference is that you have listened to them, then use the playcount tag.

If you let me exactly what your criteria are for differentiation, I'll try and come up with something for you...

pdedecker:

--- Quote ---If the difference is that you have listened to them, then use the playcount tag.
--- End quote ---
Yup, that's what I need.


--- Quote ---If you let me exactly what your criteria are for differentiation, I'll try and come up with something for you...
--- End quote ---
Here's how I want my podcasts to be indexed:
--- Quote ---IF genre = "Podcast" AND playcount == "0" AND path = "[root]/Podcasts/Daily Source Code" THEN
--> Show in Custom view... > New Podcasts > Daily Source Code

IF genre = "Podcast" AND playcount == "0" AND path = "[root]/Podcasts/Pacific Coast Hellway" THEN
--> Show in Custom view... > New Podcasts > Pacific Coast Hellway

IF genre = "Podcast" AND playcount != "0" AND path = "[root]/Podcasts/Daily Source Code" THEN
--> Show in Custom view... > Archived Podcasts > Daily Source Code

IF genre = "Podcast" AND playcount != "0" AND path = "[root]/Podcasts/Pacific Coast Hellway" THEN
--> Show in Custom view... > Archived Podcasts > Pacific Coast Hellway
--- End quote ---
Of course, I have many more podcasts that I listen to, but you get the idea. :)

Navigation

[0] Message Index

[#] Next page

Go to full version