PDA

View Full Version : Robust Folder Manipulation - folders.tcl


rbautch
11-04-2006, 07:48 PM
Here is a script that will: 1) add shows to a folder, 2) create new folders, 3) remove shows from a folder, 4) rename a folder, and 5) list folders and their contents. It offers the following improvements/differences over previously developed folder tools:

- Works reliably.
- Can group multiple shows at once.
- Combines mutiple folder tools in a single script.
- Does not require you to look up fsids.
- Prompts user for input.
- Changes are implemented immediately, without needing to play the show first.
- Works independently of TWP.

Usage: Run without arguments, and follow the prompts.

References:
1. lgkahn's excellent TWP user interface module (http://www.dealdatabase.com/forum/showthread.php?p=252758&postcount=142)
2. This thread (http://www.dealdatabase.com/forum/showthread.php?t=36208)
3. This thread (http://www.dealdatabase.com/forum/showthread.php?t=39604)
4. angra's code to manipulate wishlist folders here (http://www.dealdatabase.com/forum/showthread.php?p=267138#post267138).

Edit 11/20/06: Updated with new options to list folders and shows. Also makes renamed folders survive guide data updates.

Edit 9/4/08: Added the ability to create new folders.

Please don't ask support questions in this thread. Instead, ask here. (http://www.tivocommunity.com/tivo-vb/showthread.php?t=364710&page=1&pp=30&highlight=folders+tcl)

Tested on 6.2 and 6.3a

rbautch
09-02-2007, 08:55 PM
I've modified the script posted above to add the following features:

Change the attributes of all shows in a particular folder, such as the Original Air Date, Actors, Title, or Episode Description.

Reorder shows in a folder using season/episode notation. So show.S02E12.mpg appears before show.S03E09.mpg in NPL.

Make show titles "nice". This includes:
- If the show does not have an episode title, set the episode title equal to the show title, and then change the show title to equal the series title.
- Strip off file extensions from episode titles.
- Remove tivo formatting from tivoserver insertions - i.e. strip off braces.
- Strip off torrent formatting, so "My.Boys.S01E18.DSR.XviD-SYS.mpg" gets changed to "My Boys" Season episode info then gets added to show description.

Here's an example of what features 7 and 8 do:
Before:
http://www.mastersav.com/tivo_tweak/before.jpg

After:
http://www.mastersav.com/tivo_tweak/after.jpg

Note that the episodes have been ordered according to the season/episode designation, the season/episode information has been moved to the episode description, formatting and extensions have been stripped off, and periods and underscores have been converted to spaces.

jwciv
11-08-2007, 09:07 PM
Hi rbautch - nice tcl, thanks!
is there a way to create a brand new folder to move shows into?
For instance, can I create one called "Dad's Movies"?

jt1134
11-08-2007, 10:26 PM
The tivo doesn't really like to arbitrarily create new folders. See rbautch's post #13 in this (http://www.tivocommunity.com/tivo-vb/showthread.php?t=325289) thread.

rbautch
11-09-2007, 09:38 AM
Let's respect this forum's rules, and not post support questions here. I'll link to the support thread in the OP.

rbautch
09-05-2008, 10:56 AM
Using code contributed by angra, I've added the ability to create new folders. I also added a few new options for listing folders and their contents. New script is in the OP.