pyTivo.git
16 years agoreformat tivo_compat debug statements
wgw [Sat, 1 Mar 2008 07:13:09 +0000 (1 01:13 -0600)]
reformat tivo_compat debug statements

16 years agoflag console debug echoes
wgw [Sat, 1 Mar 2008 07:02:50 +0000 (1 01:02 -0600)]
flag console debug echoes

16 years ago\n added to function and removed from debug_write statements
wgw [Sat, 1 Mar 2008 06:22:19 +0000 (1 00:22 -0600)]
\n added to function and removed from debug_write statements

16 years agoecho debug_write to console
wgw [Sat, 1 Mar 2008 05:13:53 +0000 (29 23:13 -0600)]
echo debug_write to console

16 years agoshortened module name written to debug.txt
wgw [Sat, 1 Mar 2008 04:32:47 +0000 (29 22:32 -0600)]
shortened module name written to debug.txt

Was: plugins.video.transcode.97 [select_aspect]  aspect169: True
Now: transcode.97 [select_aspect]  aspect169: True

16 years agoglobal debug_write foundation
wgw [Sat, 1 Mar 2008 03:53:03 +0000 (29 21:53 -0600)]
global debug_write foundation

Moved debug_write functions from each module to a single
occurance in debug.py.  Added __name__ to all debug_write
calls to display calling module in debug.txt. Added function
fn_attr() to all debug_write calls to provide module line
number and calling function name for display in debug.txt.

Usage: add "from debug import debug_write, fn_attr" to module
if debug_write is desired.  debug_write statement format is
"debug_write(__name__, fn_attr(), ['text to write', '\n'])"

Example output to debug.txt:
plugins.video.video.152 [hack]  leftAnchor matched.
plugins.video.transcode.97 [select_aspect]  aspect169: True
plugins.video.transcode.373 [video_info]  failed at akbps

16 years agoDuh, fix link make easier
KRKeegan [Fri, 29 Feb 2008 07:06:36 +0000 (28 23:06 -0800)]
Duh, fix link make easier

16 years agoAdd link to admin page in infopage
KRKeegan [Fri, 29 Feb 2008 06:46:34 +0000 (28 22:46 -0800)]
Add link to admin page in infopage

16 years agodisplay conf in console and debug.txt
wgw [Fri, 29 Feb 2008 05:51:30 +0000 (28 23:51 -0600)]
display conf in console and debug.txt

16 years agoAdd instructions
KRKeegan [Fri, 29 Feb 2008 05:45:39 +0000 (28 21:45 -0800)]
Add instructions

16 years agoPrevent deletion of server section
KRKeegan [Fri, 29 Feb 2008 05:24:46 +0000 (28 21:24 -0800)]
Prevent deletion of server section

16 years agoBold Save, Disable Reset on change
KRKeegan [Fri, 29 Feb 2008 05:15:49 +0000 (28 21:15 -0800)]
Bold Save, Disable Reset on change

16 years agoAlter test to a negative, only list not allowed characters
KRKeegan [Fri, 29 Feb 2008 04:25:51 +0000 (28 20:25 -0800)]
Alter test to a negative, only list not allowed characters

16 years agoprint tsn, aid for user support
wgw [Fri, 29 Feb 2008 01:52:43 +0000 (28 19:52 -0600)]
print tsn, aid for user support

16 years agosome ffmpeg versions report ac3 instead of liba52
wgw [Thu, 28 Feb 2008 23:24:30 +0000 (28 17:24 -0600)]
some ffmpeg versions report ac3 instead of liba52

16 years agoBetter names here; loop instead of duplicate calls.
William McBrine [Wed, 27 Feb 2008 10:34:43 +0000 (27 05:34 -0500)]
Better names here; loop instead of duplicate calls.

16 years agoOops.
William McBrine [Wed, 27 Feb 2008 10:17:47 +0000 (27 05:17 -0500)]
Oops.

16 years agoValidate data entered into fields
KRKeegan [Wed, 27 Feb 2008 08:24:44 +0000 (27 00:24 -0800)]
Validate data entered into fields

16 years agoAdd text description to redirect page.
KRKeegan [Tue, 26 Feb 2008 09:11:39 +0000 (26 01:11 -0800)]
Add text description to redirect page.

16 years agoEnable soft reset button
KRKeegan [Tue, 26 Feb 2008 09:11:09 +0000 (26 01:11 -0800)]
Enable soft reset button

16 years agoRename to more appropriate reset
KRKeegan [Tue, 26 Feb 2008 08:58:03 +0000 (26 00:58 -0800)]
Rename to more appropriate reset

16 years agoEnable redirect after soft reset
KRKeegan [Tue, 26 Feb 2008 08:57:23 +0000 (26 00:57 -0800)]
Enable redirect after soft reset

16 years agoFinish Delete option
KRKeegan [Tue, 26 Feb 2008 08:55:49 +0000 (26 00:55 -0800)]
Finish Delete option

16 years agoInitial delete section code
KRKeegan [Tue, 26 Feb 2008 08:32:04 +0000 (26 00:32 -0800)]
Initial delete section code

16 years agoEnable add section button
KRKeegan [Tue, 26 Feb 2008 08:04:01 +0000 (26 00:04 -0800)]
Enable add section button

16 years agoRedirect to new command
KRKeegan [Tue, 26 Feb 2008 08:03:25 +0000 (26 00:03 -0800)]
Redirect to new command

16 years agoShares without type setting should still show up in list
KRKeegan [Tue, 26 Feb 2008 08:03:09 +0000 (26 00:03 -0800)]
Shares without type setting should still show up in list

16 years agoEnable save button
KRKeegan [Tue, 26 Feb 2008 06:47:02 +0000 (25 22:47 -0800)]
Enable save button

16 years agoDon't make visible make blank
KRKeegan [Tue, 26 Feb 2008 06:00:58 +0000 (25 22:00 -0800)]
Don't make visible make blank

Clean up extra line breaks

16 years agoBuild server add section div
KRKeegan [Tue, 26 Feb 2008 05:32:11 +0000 (25 21:32 -0800)]
Build server add section div

16 years agoBuild Section Map
KRKeegan [Tue, 26 Feb 2008 04:52:10 +0000 (25 20:52 -0800)]
Build Section Map

16 years agoPull raw data from config
KRKeegan [Tue, 26 Feb 2008 04:51:26 +0000 (25 20:51 -0800)]
Pull raw data from config

16 years agoDelete prior config dict on reset
KRKeegan [Tue, 26 Feb 2008 02:06:58 +0000 (25 18:06 -0800)]
Delete prior config dict on reset

16 years agoConvert transcode.py to respect config.py reset
KRKeegan [Tue, 26 Feb 2008 00:53:46 +0000 (25 16:53 -0800)]
Convert transcode.py to respect config.py reset

16 years agoMusic.py: Move ffmpeg into a function to respect updates to config.py
KRKeegan [Tue, 26 Feb 2008 00:45:54 +0000 (25 16:45 -0800)]
Music.py: Move ffmpeg into a function to respect updates to config.py

16 years agoUpdate video.py to respect a reset of config.py
KRKeegan [Tue, 26 Feb 2008 00:34:54 +0000 (25 16:34 -0800)]
Update video.py to respect a reset of config.py

Getting rid of variables that are set on load in favor of calls to config.py.

16 years agoEnable rereading of pyTivo.conf without restart
KRKeegan [Tue, 26 Feb 2008 00:31:56 +0000 (25 16:31 -0800)]
Enable rereading of pyTivo.conf without restart

Initial design.  Causes config.py to reread the conf file.
httpserver.py unloads a reloads the container dict

Allof this is initiate through a restart command to the admin plugin.

16 years agoExtra call to getMetadataFromTxt
KRKeegan [Mon, 25 Feb 2008 07:41:31 +0000 (24 23:41 -0800)]
Extra call to getMetadataFromTxt

This call is already performed in the __metadata_basic function which is called at the start of this function.

16 years agoMerge branch 'master' into beta-admin
KRKeegan [Mon, 25 Feb 2008 03:03:22 +0000 (24 19:03 -0800)]
Merge branch 'master' into beta-admin

16 years agoAlso check .meta subfolder for metadata
KRKeegan [Mon, 25 Feb 2008 03:03:08 +0000 (24 19:03 -0800)]
Also check .meta subfolder for metadata

16 years agoMerge branch 'master' into beta-admin
KRKeegan [Mon, 25 Feb 2008 02:44:08 +0000 (24 18:44 -0800)]
Merge branch 'master' into beta-admin

16 years agoNo need to exit photo plugin.
KRKeegan [Mon, 25 Feb 2008 02:43:09 +0000 (24 18:43 -0800)]
No need to exit photo plugin.

It will just send 404s.  No need to force exit.
pyTivo should only crash if there is no other option.

16 years agoMake shares and tivos settings pretty
KRKeegan [Sun, 24 Feb 2008 00:57:52 +0000 (23 16:57 -0800)]
Make shares and tivos settings pretty

16 years agoMake server section more pretty
KRKeegan [Sat, 23 Feb 2008 22:51:24 +0000 (23 14:51 -0800)]
Make server section more pretty

16 years agoMake Sections Selectable
KRKeegan [Sat, 23 Feb 2008 21:24:28 +0000 (23 13:24 -0800)]
Make Sections Selectable

Change background color.
Change div id names

16 years agoAdd TiVos <div>, Clean up code
KRKeegan [Sat, 23 Feb 2008 09:17:32 +0000 (23 01:17 -0800)]
Add TiVos <div>, Clean up code

16 years agoGracefully handle a bad share type.
KRKeegan [Sat, 23 Feb 2008 09:03:33 +0000 (23 01:03 -0800)]
Gracefully handle a bad share type.

16 years agoAdd div for shares
KRKeegan [Sat, 23 Feb 2008 08:20:30 +0000 (23 00:20 -0800)]
Add div for shares

16 years agoContinued development of admin template
KRKeegan [Sat, 23 Feb 2008 04:59:22 +0000 (22 20:59 -0800)]
Continued development of admin template

16 years agoMerge branch 'master' into beta-admin
KRKeegan [Sat, 23 Feb 2008 04:37:13 +0000 (22 20:37 -0800)]
Merge branch 'master' into beta-admin

16 years agoThen again, exit() isn't compatible with Python 2.4. Bah.
William McBrine [Sat, 23 Feb 2008 03:36:28 +0000 (22 22:36 -0500)]
Then again, exit() isn't compatible with Python 2.4. Bah.

16 years agoDon't need sys just for this; should capitalize 'Python'.
William McBrine [Sat, 23 Feb 2008 02:50:48 +0000 (22 21:50 -0500)]
Don't need sys just for this; should capitalize 'Python'.

16 years agoEven better, print an error message; consolidate the unsupported() calls;
William McBrine [Sat, 23 Feb 2008 02:47:46 +0000 (22 21:47 -0500)]
Even better, print an error message; consolidate the unsupported() calls;
spacing.

16 years agoexcept: pass, not except: None
William McBrine [Sat, 23 Feb 2008 02:29:22 +0000 (22 21:29 -0500)]
except: pass, not except: None

16 years agoMerge git://repo.or.cz/pyTivo/krkeegan
William McBrine [Sat, 23 Feb 2008 02:27:22 +0000 (22 21:27 -0500)]
Merge git://repo.or.cz/pyTivo/krkeegan

16 years agoAnother place to check for an exact share name match.
William McBrine [Sat, 23 Feb 2008 02:16:21 +0000 (22 21:16 -0500)]
Another place to check for an exact share name match.

16 years agoProvide Unsupported response if container does not exist
KRKeegan [Fri, 22 Feb 2008 23:03:38 +0000 (22 15:03 -0800)]
Provide Unsupported response if container does not exist

We really should be providing the same error if a container does not exist as we do if the command does not exist

16 years agoGracefully handle bad containers
KRKeegan [Fri, 22 Feb 2008 22:47:38 +0000 (22 14:47 -0800)]
Gracefully handle bad containers

16 years agoInitial design of adminV2
KRKeegan [Fri, 22 Feb 2008 21:53:48 +0000 (22 13:53 -0800)]
Initial design of adminV2

16 years agoMerge branch 'master' into beta-admin
KRKeegan [Fri, 22 Feb 2008 02:24:54 +0000 (21 18:24 -0800)]
Merge branch 'master' into beta-admin

16 years agoReadable error when python imaging is not installed
KRKeegan [Fri, 22 Feb 2008 02:23:03 +0000 (21 18:23 -0800)]
Readable error when python imaging is not installed

16 years agoNeater.
William McBrine [Thu, 21 Feb 2008 05:47:58 +0000 (21 00:47 -0500)]
Neater.

16 years agoBogus mode reset.
William McBrine [Wed, 20 Feb 2008 19:23:06 +0000 (20 14:23 -0500)]
Bogus mode reset.

16 years agoMerge git://repo.or.cz/pyTivo/krkeegan
William McBrine [Wed, 20 Feb 2008 19:22:26 +0000 (20 14:22 -0500)]
Merge git://repo.or.cz/pyTivo/krkeegan

16 years agoMerge branch 'master' into beta-admin
KRKeegan [Wed, 20 Feb 2008 02:04:29 +0000 (19 18:04 -0800)]
Merge branch 'master' into beta-admin

16 years agoAdded Capture date based on file modified time
KRKeegan [Wed, 20 Feb 2008 02:04:13 +0000 (19 18:04 -0800)]
Added Capture date based on file modified time

This adds the nice Day of week and month/day list to the right.  Currently the information is just based off of the last modified time of the file.

16 years agoMerge branch 'master' into beta-admin
KRKeegan [Tue, 19 Feb 2008 19:29:30 +0000 (19 11:29 -0800)]
Merge branch 'master' into beta-admin

16 years agoAdded Total Items Count to Folders
KRKeegan [Tue, 19 Feb 2008 19:15:49 +0000 (19 11:15 -0800)]
Added Total Items Count to Folders

16 years agoMerge branch 'master' into beta-admin
KRKeegan [Tue, 19 Feb 2008 07:10:53 +0000 (18 23:10 -0800)]
Merge branch 'master' into beta-admin

16 years agoIgnore folders and files starting with .
KRKeegan [Tue, 19 Feb 2008 07:10:33 +0000 (18 23:10 -0800)]
Ignore folders and files starting with .

16 years agoMerge branch 'master' into subfolders-8.3
William McBrine [Tue, 19 Feb 2008 01:08:01 +0000 (18 20:08 -0500)]
Merge branch 'master' into subfolders-8.3

16 years agoMetadata time in UTC.
William McBrine [Tue, 19 Feb 2008 01:07:46 +0000 (18 20:07 -0500)]
Metadata time in UTC.

16 years agoMerge branch 'master' into beta-admin
KRKeegan [Tue, 19 Feb 2008 00:52:50 +0000 (18 16:52 -0800)]
Merge branch 'master' into beta-admin

16 years agoFixed slight bug in metadata time
KRKeegan [Tue, 19 Feb 2008 00:51:58 +0000 (18 16:51 -0800)]
Fixed slight bug in metadata time

The metadata time should be UTC.  Fixes issue of transfered video showing up below programs recorded before the transfer.

16 years agoMerge branch 'master' into beta-admin
KRKeegan [Sun, 17 Feb 2008 03:42:27 +0000 (16 19:42 -0800)]
Merge branch 'master' into beta-admin

16 years agoMerge branch 'subfolders-8.3' of git://repo.or.cz/pyTivo/wmcbrine
KRKeegan [Sun, 17 Feb 2008 03:40:22 +0000 (16 19:40 -0800)]
Merge branch 'subfolders-8.3' of git://repo.or.cz/pyTivo/wmcbrine

Conflicts:

plugins/video/video.py
pyTivo.py

16 years agoInitial Web Administration Plugin
KRKeegan [Fri, 15 Feb 2008 18:46:05 +0000 (15 10:46 -0800)]
Initial Web Administration Plugin

This is my initial attempt at making a web administration plugin.

16 years agoMerge branch 'master' into subfolders-8.3
William McBrine [Thu, 14 Feb 2008 20:59:36 +0000 (14 15:59 -0500)]
Merge branch 'master' into subfolders-8.3

16 years agoSkip shortcutting validity check if precache is on.
William McBrine [Thu, 14 Feb 2008 20:59:25 +0000 (14 15:59 -0500)]
Skip shortcutting validity check if precache is on.

16 years agoSpacing.
William McBrine [Thu, 14 Feb 2008 20:36:17 +0000 (14 15:36 -0500)]
Spacing.

16 years agoMerge branch 'master' into subfolders-8.3
William McBrine [Thu, 14 Feb 2008 18:02:55 +0000 (14 13:02 -0500)]
Merge branch 'master' into subfolders-8.3

Conflicts:

plugins/video/video.py

16 years agoExtraneous code, formatting.
William McBrine [Thu, 14 Feb 2008 18:01:48 +0000 (14 13:01 -0500)]
Extraneous code, formatting.

16 years agoKRKeegan's pre-caching.
William McBrine [Thu, 14 Feb 2008 17:51:05 +0000 (14 12:51 -0500)]
KRKeegan's pre-caching.

16 years agoMerge branch 'master' into subfolders-8.3
William McBrine [Thu, 14 Feb 2008 17:09:12 +0000 (14 12:09 -0500)]
Merge branch 'master' into subfolders-8.3

16 years agoIf the file is already in transcode's info_cache (i.e., it has already
William McBrine [Thu, 14 Feb 2008 17:08:45 +0000 (14 12:08 -0500)]
If the file is already in transcode's info_cache (i.e., it has already
been ffmpeg'd), then do the full test (which should incur no further
penalty).

16 years agoMerge branch 'master' into subfolders-8.3
William McBrine [Thu, 14 Feb 2008 02:19:12 +0000 (13 21:19 -0500)]
Merge branch 'master' into subfolders-8.3

16 years agoCall ffmpeg only when really, really needed: when getting the detailed info
William McBrine [Thu, 14 Feb 2008 02:14:38 +0000 (13 21:14 -0500)]
Call ffmpeg only when really, really needed: when getting the detailed info
for a single file.

16 years agoStatus messages about precaching status.
KRKeegan [Tue, 12 Feb 2008 17:52:26 +0000 (12 09:52 -0800)]
Status messages about precaching status.

Added 2 print lines so that a user can tell when pyTivo is precaching files and when it is ready to serve requests.

16 years agoMerge branch 'master' into subfolders-8.3
William McBrine [Tue, 12 Feb 2008 16:05:55 +0000 (12 11:05 -0500)]
Merge branch 'master' into subfolders-8.3

16 years agoAssume iso8859-1 for Windows -- this should work for most users, and it
William McBrine [Tue, 12 Feb 2008 16:05:38 +0000 (12 11:05 -0500)]
Assume iso8859-1 for Windows -- this should work for most users, and it
will have to do until subprocess supports Unicode names.

16 years agoMerge branch 'master' into subfolders-8.3
William McBrine [Tue, 12 Feb 2008 05:34:28 +0000 (12 00:34 -0500)]
Merge branch 'master' into subfolders-8.3

16 years agoStill need this... also, Unicode names are not working with subprocess
William McBrine [Tue, 12 Feb 2008 05:34:06 +0000 (12 00:34 -0500)]
Still need this... also, Unicode names are not working with subprocess
in Windows. Hmm.

16 years agoNew: PreCache Files so TiVo Loads Faster
KRKeegan [Tue, 12 Feb 2008 04:56:50 +0000 (11 20:56 -0800)]
New: PreCache Files so TiVo Loads Faster

This will cause pyTivo parse all files recursivly in a share to load them into the cache.  Currently this only works in the video plugin, but incorporation into other plugins that use a cache is very easy.

In the video plugin this causes pyTivo to run ffmpeg on EVERY video file in that share and stores that information in the cache.

Benefits: This greatly decreases the load time while browsing on the TiVo. For me a folder with 50 videos would take 18 seconds to load the first time I viewed it.  Now it takes less than 2 seconds.
Drawbacks: This will create a delay in the startup of pyTivo while processing the files.  For me I experienced a delay of nearly 2 minutes to parse 757 video files.

Usage:
Set the precache=true under any share.  If the plugin does not support the precache setting it is ignored.

Example:
In the following conf file the share "Old TV" would be precached while "Movies" and "Photos" would not be.

[Old TV]
type = video
path = /store/TV
precache=true

[Movies]
type = video
path = /store/Movies

[Photos]
type = photo
path = /store/Photos

[Server]
debug = true
ffmpeg = /usr/bin/ffmpeg
hack83 = true
port = 9032

16 years agoMerge branch 'master' into subfolders-8.3
William McBrine [Tue, 12 Feb 2008 04:31:39 +0000 (11 23:31 -0500)]
Merge branch 'master' into subfolders-8.3

16 years agoSupport for Seek/Duration parameters to music. That means you can rewind
William McBrine [Tue, 12 Feb 2008 04:31:14 +0000 (11 23:31 -0500)]
Support for Seek/Duration parameters to music. That means you can rewind
and fast forward.

16 years agoMerge git://repo.or.cz/pyTivo/krkeegan
wgw [Sun, 10 Feb 2008 07:04:38 +0000 (10 01:04 -0600)]
Merge git://repo.or.cz/pyTivo/krkeegan

16 years agoMerge branch 'subfolders-8.3' of git://repo.or.cz/pyTivo/wmcbrine
wgw [Sun, 10 Feb 2008 07:02:43 +0000 (10 01:02 -0600)]
Merge branch 'subfolders-8.3' of git://repo.or.cz/pyTivo/wmcbrine

16 years agoMerge branch 'master' into subfolders-8.3
William McBrine [Sun, 10 Feb 2008 05:16:19 +0000 (10 00:16 -0500)]
Merge branch 'master' into subfolders-8.3

16 years agoNeed config here for KRKeegan's per-TiVo share patch.
William McBrine [Sun, 10 Feb 2008 05:15:41 +0000 (10 00:15 -0500)]
Need config here for KRKeegan's per-TiVo share patch.

16 years agoMerge branch 'master' into subfolders-8.3
William McBrine [Sun, 10 Feb 2008 05:02:19 +0000 (10 00:02 -0500)]
Merge branch 'master' into subfolders-8.3