wgw [Sat, 1 Mar 2008 07:13:09 +0000 (1 01:13 -0600)]
reformat tivo_compat debug statements
wgw [Sat, 1 Mar 2008 07:02:50 +0000 (1 01:02 -0600)]
flag console debug echoes
wgw [Sat, 1 Mar 2008 06:22:19 +0000 (1 00:22 -0600)]
\n added to function and removed from debug_write statements
wgw [Sat, 1 Mar 2008 05:13:53 +0000 (29 23:13 -0600)]
echo debug_write to console
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
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
KRKeegan [Fri, 29 Feb 2008 07:06:36 +0000 (28 23:06 -0800)]
Duh, fix link make easier
KRKeegan [Fri, 29 Feb 2008 06:46:34 +0000 (28 22:46 -0800)]
Add link to admin page in infopage
wgw [Fri, 29 Feb 2008 05:51:30 +0000 (28 23:51 -0600)]
display conf in console and debug.txt
KRKeegan [Fri, 29 Feb 2008 05:45:39 +0000 (28 21:45 -0800)]
Add instructions
KRKeegan [Fri, 29 Feb 2008 05:24:46 +0000 (28 21:24 -0800)]
Prevent deletion of server section
KRKeegan [Fri, 29 Feb 2008 05:15:49 +0000 (28 21:15 -0800)]
Bold Save, Disable Reset on change
KRKeegan [Fri, 29 Feb 2008 04:25:51 +0000 (28 20:25 -0800)]
Alter test to a negative, only list not allowed characters
wgw [Fri, 29 Feb 2008 01:52:43 +0000 (28 19:52 -0600)]
print tsn, aid for user support
wgw [Thu, 28 Feb 2008 23:24:30 +0000 (28 17:24 -0600)]
some ffmpeg versions report ac3 instead of liba52
William McBrine [Wed, 27 Feb 2008 10:34:43 +0000 (27 05:34 -0500)]
Better names here; loop instead of duplicate calls.
William McBrine [Wed, 27 Feb 2008 10:17:47 +0000 (27 05:17 -0500)]
Oops.
KRKeegan [Wed, 27 Feb 2008 08:24:44 +0000 (27 00:24 -0800)]
Validate data entered into fields
KRKeegan [Tue, 26 Feb 2008 09:11:39 +0000 (26 01:11 -0800)]
Add text description to redirect page.
KRKeegan [Tue, 26 Feb 2008 09:11:09 +0000 (26 01:11 -0800)]
Enable soft reset button
KRKeegan [Tue, 26 Feb 2008 08:58:03 +0000 (26 00:58 -0800)]
Rename to more appropriate reset
KRKeegan [Tue, 26 Feb 2008 08:57:23 +0000 (26 00:57 -0800)]
Enable redirect after soft reset
KRKeegan [Tue, 26 Feb 2008 08:55:49 +0000 (26 00:55 -0800)]
Finish Delete option
KRKeegan [Tue, 26 Feb 2008 08:32:04 +0000 (26 00:32 -0800)]
Initial delete section code
KRKeegan [Tue, 26 Feb 2008 08:04:01 +0000 (26 00:04 -0800)]
Enable add section button
KRKeegan [Tue, 26 Feb 2008 08:03:25 +0000 (26 00:03 -0800)]
Redirect to new command
KRKeegan [Tue, 26 Feb 2008 08:03:09 +0000 (26 00:03 -0800)]
Shares without type setting should still show up in list
KRKeegan [Tue, 26 Feb 2008 06:47:02 +0000 (25 22:47 -0800)]
Enable save button
KRKeegan [Tue, 26 Feb 2008 06:00:58 +0000 (25 22:00 -0800)]
Don't make visible make blank
Clean up extra line breaks
KRKeegan [Tue, 26 Feb 2008 05:32:11 +0000 (25 21:32 -0800)]
Build server add section div
KRKeegan [Tue, 26 Feb 2008 04:52:10 +0000 (25 20:52 -0800)]
Build Section Map
KRKeegan [Tue, 26 Feb 2008 04:51:26 +0000 (25 20:51 -0800)]
Pull raw data from config
KRKeegan [Tue, 26 Feb 2008 02:06:58 +0000 (25 18:06 -0800)]
Delete prior config dict on reset
KRKeegan [Tue, 26 Feb 2008 00:53:46 +0000 (25 16:53 -0800)]
Convert transcode.py to respect config.py reset
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
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.
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.
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.
KRKeegan [Mon, 25 Feb 2008 03:03:22 +0000 (24 19:03 -0800)]
Merge branch 'master' into beta-admin
KRKeegan [Mon, 25 Feb 2008 03:03:08 +0000 (24 19:03 -0800)]
Also check .meta subfolder for metadata
KRKeegan [Mon, 25 Feb 2008 02:44:08 +0000 (24 18:44 -0800)]
Merge branch 'master' into beta-admin
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.
KRKeegan [Sun, 24 Feb 2008 00:57:52 +0000 (23 16:57 -0800)]
Make shares and tivos settings pretty
KRKeegan [Sat, 23 Feb 2008 22:51:24 +0000 (23 14:51 -0800)]
Make server section more pretty
KRKeegan [Sat, 23 Feb 2008 21:24:28 +0000 (23 13:24 -0800)]
Make Sections Selectable
Change background color.
Change div id names
KRKeegan [Sat, 23 Feb 2008 09:17:32 +0000 (23 01:17 -0800)]
Add TiVos <div>, Clean up code
KRKeegan [Sat, 23 Feb 2008 09:03:33 +0000 (23 01:03 -0800)]
Gracefully handle a bad share type.
KRKeegan [Sat, 23 Feb 2008 08:20:30 +0000 (23 00:20 -0800)]
Add div for shares
KRKeegan [Sat, 23 Feb 2008 04:59:22 +0000 (22 20:59 -0800)]
Continued development of admin template
KRKeegan [Sat, 23 Feb 2008 04:37:13 +0000 (22 20:37 -0800)]
Merge branch 'master' into beta-admin
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.
William McBrine [Sat, 23 Feb 2008 02:50:48 +0000 (22 21:50 -0500)]
Don't need sys just for this; should capitalize 'Python'.
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.
William McBrine [Sat, 23 Feb 2008 02:29:22 +0000 (22 21:29 -0500)]
except: pass, not except: None
William McBrine [Sat, 23 Feb 2008 02:27:22 +0000 (22 21:27 -0500)]
Merge git://repo.or.cz/pyTivo/krkeegan
William McBrine [Sat, 23 Feb 2008 02:16:21 +0000 (22 21:16 -0500)]
Another place to check for an exact share name match.
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
KRKeegan [Fri, 22 Feb 2008 22:47:38 +0000 (22 14:47 -0800)]
Gracefully handle bad containers
KRKeegan [Fri, 22 Feb 2008 21:53:48 +0000 (22 13:53 -0800)]
Initial design of adminV2
KRKeegan [Fri, 22 Feb 2008 02:24:54 +0000 (21 18:24 -0800)]
Merge branch 'master' into beta-admin
KRKeegan [Fri, 22 Feb 2008 02:23:03 +0000 (21 18:23 -0800)]
Readable error when python imaging is not installed
William McBrine [Thu, 21 Feb 2008 05:47:58 +0000 (21 00:47 -0500)]
Neater.
William McBrine [Wed, 20 Feb 2008 19:23:06 +0000 (20 14:23 -0500)]
Bogus mode reset.
William McBrine [Wed, 20 Feb 2008 19:22:26 +0000 (20 14:22 -0500)]
Merge git://repo.or.cz/pyTivo/krkeegan
KRKeegan [Wed, 20 Feb 2008 02:04:29 +0000 (19 18:04 -0800)]
Merge branch 'master' into beta-admin
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.
KRKeegan [Tue, 19 Feb 2008 19:29:30 +0000 (19 11:29 -0800)]
Merge branch 'master' into beta-admin
KRKeegan [Tue, 19 Feb 2008 19:15:49 +0000 (19 11:15 -0800)]
Added Total Items Count to Folders
KRKeegan [Tue, 19 Feb 2008 07:10:53 +0000 (18 23:10 -0800)]
Merge branch 'master' into beta-admin
KRKeegan [Tue, 19 Feb 2008 07:10:33 +0000 (18 23:10 -0800)]
Ignore folders and files starting with .
William McBrine [Tue, 19 Feb 2008 01:08:01 +0000 (18 20:08 -0500)]
Merge branch 'master' into subfolders-8.3
William McBrine [Tue, 19 Feb 2008 01:07:46 +0000 (18 20:07 -0500)]
Metadata time in UTC.
KRKeegan [Tue, 19 Feb 2008 00:52:50 +0000 (18 16:52 -0800)]
Merge branch 'master' into beta-admin
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.
KRKeegan [Sun, 17 Feb 2008 03:42:27 +0000 (16 19:42 -0800)]
Merge branch 'master' into beta-admin
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
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.
William McBrine [Thu, 14 Feb 2008 20:59:36 +0000 (14 15:59 -0500)]
Merge branch 'master' into subfolders-8.3
William McBrine [Thu, 14 Feb 2008 20:59:25 +0000 (14 15:59 -0500)]
Skip shortcutting validity check if precache is on.
William McBrine [Thu, 14 Feb 2008 20:36:17 +0000 (14 15:36 -0500)]
Spacing.
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
William McBrine [Thu, 14 Feb 2008 18:01:48 +0000 (14 13:01 -0500)]
Extraneous code, formatting.
William McBrine [Thu, 14 Feb 2008 17:51:05 +0000 (14 12:51 -0500)]
KRKeegan's pre-caching.
William McBrine [Thu, 14 Feb 2008 17:09:12 +0000 (14 12:09 -0500)]
Merge branch 'master' into subfolders-8.3
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).
William McBrine [Thu, 14 Feb 2008 02:19:12 +0000 (13 21:19 -0500)]
Merge branch 'master' into subfolders-8.3
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.
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.
William McBrine [Tue, 12 Feb 2008 16:05:55 +0000 (12 11:05 -0500)]
Merge branch 'master' into subfolders-8.3
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.
William McBrine [Tue, 12 Feb 2008 05:34:28 +0000 (12 00:34 -0500)]
Merge branch 'master' into subfolders-8.3
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.
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
William McBrine [Tue, 12 Feb 2008 04:31:39 +0000 (11 23:31 -0500)]
Merge branch 'master' into subfolders-8.3
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.
wgw [Sun, 10 Feb 2008 07:04:38 +0000 (10 01:04 -0600)]
Merge git://repo.or.cz/pyTivo/krkeegan
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
William McBrine [Sun, 10 Feb 2008 05:16:19 +0000 (10 00:16 -0500)]
Merge branch 'master' into subfolders-8.3
William McBrine [Sun, 10 Feb 2008 05:15:41 +0000 (10 00:15 -0500)]
Need config here for KRKeegan's per-TiVo share patch.
William McBrine [Sun, 10 Feb 2008 05:02:19 +0000 (10 00:02 -0500)]
Merge branch 'master' into subfolders-8.3