pyTivo/TheBayer.git
14 years agoMerge commit 'wmcbrine/master'master
Eric von Bayer [Thu, 18 Feb 2010 23:16:20 +0000 (18 15:16 -0800)]
Merge commit 'wmcbrine/master'

Conflicts:

httpserver.py
plugins/togo/templates/npl.tmpl
plugins/togo/togo.py
pyTivo.conf.dist

14 years agoSkip trying to extract data from "audioFile" when mutagen fails.
William McBrine [Tue, 16 Feb 2010 07:53:44 +0000 (16 02:53 -0500)]
Skip trying to extract data from "audioFile" when mutagen fails.

14 years agoXML escape TiVo names, plus show titles and descriptions in the ToGo page.
William McBrine [Tue, 16 Feb 2010 05:20:47 +0000 (16 00:20 -0500)]
XML escape TiVo names, plus show titles and descriptions in the ToGo page.

14 years agoUse proper XML escaping for all fields in the music and photo plugins.
William McBrine [Tue, 16 Feb 2010 02:59:17 +0000 (15 21:59 -0500)]
Use proper XML escaping for all fields in the music and photo plugins.
This doesn't matter to the TiVo, AFAICT, but it makes Firefox happy.

14 years agoIf no referer for Push, return 200 OK. For compatibility with some
William McBrine [Mon, 15 Feb 2010 01:30:26 +0000 (14 20:30 -0500)]
If no referer for Push, return 200 OK. For compatibility with some
external programs that use pyTivo Push.

14 years agoUse shutil for content files, as elsewhere.
William McBrine [Thu, 11 Feb 2010 00:53:37 +0000 (10 19:53 -0500)]
Use shutil for content files, as elsewhere.

14 years agoBreak out the CSS. (To my surprise, this also seems to suppress the
William McBrine [Wed, 10 Feb 2010 06:45:08 +0000 (10 01:45 -0500)]
Break out the CSS. (To my surprise, this also seems to suppress the
favicon requests.)

14 years agoMove the settings JavaScript to its own file.
William McBrine [Wed, 10 Feb 2010 06:03:20 +0000 (10 01:03 -0500)]
Move the settings JavaScript to its own file.

14 years agoToo much output, not useful enough.
William McBrine [Wed, 10 Feb 2010 05:48:52 +0000 (10 00:48 -0500)]
Too much output, not useful enough.

14 years agoDon't need the special XSL() function anymore.
William McBrine [Wed, 10 Feb 2010 05:44:05 +0000 (10 00:44 -0500)]
Don't need the special XSL() function anymore.

14 years agoMoved icons to top-level content, with more descriptive names.
William McBrine [Tue, 9 Feb 2010 07:01:24 +0000 (9 02:01 -0500)]
Moved icons to top-level content, with more descriptive names.

14 years agoServe from any "content" subdirectory.
William McBrine [Mon, 8 Feb 2010 19:03:28 +0000 (8 14:03 -0500)]
Serve from any "content" subdirectory.

14 years agoOmit the "content" part of the path in plugin content URLs.
William McBrine [Mon, 8 Feb 2010 00:05:06 +0000 (7 19:05 -0500)]
Omit the "content" part of the path in plugin content URLs.

14 years agoNo need to step through the loop.
William McBrine [Sun, 7 Feb 2010 23:34:08 +0000 (7 18:34 -0500)]
No need to step through the loop.

14 years agoDo the plugin content URL matching only when necessary.
William McBrine [Sun, 7 Feb 2010 16:12:02 +0000 (7 11:12 -0500)]
Do the plugin content URL matching only when necessary.

14 years agomimetype.guess_type() returns a tuple, and it might be (None, None).
William McBrine [Sun, 7 Feb 2010 08:28:05 +0000 (7 03:28 -0500)]
mimetype.guess_type() returns a tuple, and it might be (None, None).

14 years agoMove handle_plugin_content() to its own function.
William McBrine [Sun, 7 Feb 2010 06:04:13 +0000 (7 01:04 -0500)]
Move handle_plugin_content() to its own function.

14 years agoIcons by Eric von Bayer.
William McBrine [Sun, 7 Feb 2010 05:55:01 +0000 (7 00:55 -0500)]
Icons by Eric von Bayer.

14 years agoComment in line with others.
William McBrine [Sun, 7 Feb 2010 05:53:47 +0000 (7 00:53 -0500)]
Comment in line with others.

14 years agoGeneralized webserver functionality to allow serving
Eric von Bayer [Sun, 7 Feb 2010 05:18:28 +0000 (7 00:18 -0500)]
Generalized webserver functionality to allow serving
http://<server>:<port>/plugin/<plugin name>/content/<any file>

14 years agoNote tivo_mak and togo_path in pyTivo.conf.dist, after Eric von Bayer.
William McBrine [Sun, 7 Feb 2010 04:50:04 +0000 (6 23:50 -0500)]
Note tivo_mak and togo_path in pyTivo.conf.dist, after Eric von Bayer.

14 years agoD'oh!
William McBrine [Sun, 7 Feb 2010 00:21:42 +0000 (6 19:21 -0500)]
D'oh!

14 years agoMight be better.
William McBrine [Sat, 6 Feb 2010 21:55:03 +0000 (6 16:55 -0500)]
Might be better.

14 years agoCache config-set paths in bin_paths; reset bin_paths when rereading
William McBrine [Sat, 6 Feb 2010 21:48:24 +0000 (6 16:48 -0500)]
Cache config-set paths in bin_paths; reset bin_paths when rereading
config; more logging.

14 years agoIn get_bin(), fall through to search when a specified path is invalid.
William McBrine [Sat, 6 Feb 2010 21:27:58 +0000 (6 16:27 -0500)]
In get_bin(), fall through to search when a specified path is invalid.

14 years agoIn get_bin(), check specified paths for validity, and log errors,
William McBrine [Sat, 6 Feb 2010 21:09:59 +0000 (6 16:09 -0500)]
In get_bin(), check specified paths for validity, and log errors,
instead of leaving it to the traceback.

14 years agoCached binary names were not being returned under Windows, so the PATH
William McBrine [Sat, 6 Feb 2010 20:54:56 +0000 (6 15:54 -0500)]
Cached binary names were not being returned under Windows, so the PATH
was rechecked each time.

14 years agoCenter "CopyProtected"; remove periods.
William McBrine [Thu, 4 Feb 2010 06:21:46 +0000 (4 01:21 -0500)]
Center "CopyProtected"; remove periods.

14 years agoIf the "shares" keyword is used, but no valid shares are specified, then
William McBrine [Thu, 28 Jan 2010 19:08:41 +0000 (28 14:08 -0500)]
If the "shares" keyword is used, but no valid shares are specified, then
show no shares to that TiVo, instead of showing all of them. This is
probably more in line with user expectations.

14 years agoPresent a sorted list of shares for pushing on the infopage.
William McBrine [Sun, 10 Jan 2010 03:18:29 +0000 (9 22:18 -0500)]
Present a sorted list of shares for pushing on the infopage.

14 years agoIgnore empty values from credits, also.
William McBrine [Thu, 7 Jan 2010 07:38:19 +0000 (7 02:38 -0500)]
Ignore empty values from credits, also.

14 years agoIgnore malformed credits in DVR-MS/etc.
William McBrine [Thu, 7 Jan 2010 07:19:10 +0000 (7 02:19 -0500)]
Ignore malformed credits in DVR-MS/etc.

14 years agoAccomodate some broken installations of the Python Imaging Library.
William McBrine [Mon, 4 Jan 2010 06:23:16 +0000 (4 01:23 -0500)]
Accomodate some broken installations of the Python Imaging Library.

14 years agoSome people are reporting bogus data coming back from Zeroconf scans,
William McBrine [Wed, 30 Dec 2009 03:25:51 +0000 (29 22:25 -0500)]
Some people are reporting bogus data coming back from Zeroconf scans,
causing exceptions.

14 years agoAdd .NEF to supported image format extensions -- however, only the
William McBrine [Fri, 25 Dec 2009 02:24:27 +0000 (24 21:24 -0500)]
Add .NEF to supported image format extensions -- however, only the
thumbnail is used.

14 years agoThat's what I get for cutting and pasting.
William McBrine [Thu, 24 Dec 2009 14:32:56 +0000 (24 09:32 -0500)]
That's what I get for cutting and pasting.

14 years agoCatch errors due to bogus timestamps. Not tested, because I don't know
William McBrine [Thu, 24 Dec 2009 00:52:14 +0000 (23 19:52 -0500)]
Catch errors due to bogus timestamps. Not tested, because I don't know
how to generate them.

14 years agoUse human-readable forms for the ratings when dumping metadata.
William McBrine [Wed, 23 Dec 2009 22:48:19 +0000 (23 17:48 -0500)]
Use human-readable forms for the ratings when dumping metadata.

14 years agoParse the iTunMOVI tag (cast, etc. from MP4).
William McBrine [Mon, 21 Dec 2009 16:54:28 +0000 (21 11:54 -0500)]
Parse the iTunMOVI tag (cast, etc. from MP4).

14 years agoEpisode numbers must be numeric.
William McBrine [Mon, 21 Dec 2009 06:09:43 +0000 (21 01:09 -0500)]
Episode numbers must be numeric.

14 years agoSome missing ratings; use uppercase for all comparisons; same typo in
William McBrine [Fri, 11 Dec 2009 02:38:33 +0000 (10 21:38 -0500)]
Some missing ratings; use uppercase for all comparisons; same typo in
from_text() as in from_eyetv().

14 years agoAlignment.
William McBrine [Thu, 10 Dec 2009 20:21:28 +0000 (10 15:21 -0500)]
Alignment.

14 years agoTypo -- broke mpaaRating for EyeTV.
William McBrine [Thu, 10 Dec 2009 20:19:00 +0000 (10 15:19 -0500)]
Typo -- broke mpaaRating for EyeTV.

14 years agoAllow human-readable ratings in metadata text files; combine the rating
William McBrine [Thu, 10 Dec 2009 19:19:10 +0000 (10 14:19 -0500)]
Allow human-readable ratings in metadata text files; combine the rating
tables.

14 years agoDefault tvRating to "No Rating" instead of "TV-NR".
William McBrine [Thu, 10 Dec 2009 17:45:34 +0000 (10 12:45 -0500)]
Default tvRating to "No Rating" instead of "TV-NR".

14 years agoAllow TV-NR to be set from DVR-MS and EyeTV.
William McBrine [Wed, 9 Dec 2009 16:03:31 +0000 (9 11:03 -0500)]
Allow TV-NR to be set from DVR-MS and EyeTV.

14 years agoAllow pushing of the tvRating.
William McBrine [Wed, 9 Dec 2009 15:59:05 +0000 (9 10:59 -0500)]
Allow pushing of the tvRating.

14 years agoDefine SEEK_CUR in qtfaststart.py, since it's not defined in Python
William McBrine [Mon, 7 Dec 2009 21:52:58 +0000 (7 16:52 -0500)]
Define SEEK_CUR in qtfaststart.py, since it's not defined in Python
2.4's os module; extra spaces out.

14 years agoUse symind as the default mind server for Australian TSNs. Currently
William McBrine [Thu, 3 Dec 2009 18:53:07 +0000 (3 13:53 -0500)]
Use symind as the default mind server for Australian TSNs. Currently
doesn't apply to the webvideo plugin.

14 years agoMore things that are no longer needed.
William McBrine [Sat, 28 Nov 2009 23:15:58 +0000 (28 18:15 -0500)]
More things that are no longer needed.

14 years agoRESET_MSG is not used here.
William McBrine [Sat, 28 Nov 2009 23:12:16 +0000 (28 18:12 -0500)]
RESET_MSG is not used here.

14 years agoNeed this one too.
William McBrine [Sat, 28 Nov 2009 23:11:11 +0000 (28 18:11 -0500)]
Need this one too.

14 years agoSimplify the redirects, and properly redirect to subfolders. After Eric
William McBrine [Sat, 28 Nov 2009 23:06:53 +0000 (28 18:06 -0500)]
Simplify the redirects, and properly redirect to subfolders. After Eric
von Bayer.

14 years agoSome more fields from DVR-MS/etc. More sample data needed.
William McBrine [Thu, 12 Nov 2009 06:50:39 +0000 (12 01:50 -0500)]
Some more fields from DVR-MS/etc. More sample data needed.

14 years agoPreliminary support for metadata from DVR-MS/WMV/ASF, via mutagen. Much
William McBrine [Wed, 11 Nov 2009 09:13:45 +0000 (11 04:13 -0500)]
Preliminary support for metadata from DVR-MS/WMV/ASF, via mutagen. Much
more to do here.

14 years agoSearch for default.txt in the .meta directory.
William McBrine [Wed, 11 Nov 2009 02:21:20 +0000 (10 21:21 -0500)]
Search for default.txt in the .meta directory.

14 years agoDon't need the string module here.
William McBrine [Mon, 9 Nov 2009 16:58:40 +0000 (9 11:58 -0500)]
Don't need the string module here.

14 years agoKeep the shares sorted on the root container page (needed if Zeroconf is
William McBrine [Mon, 9 Nov 2009 00:08:26 +0000 (8 19:08 -0500)]
Keep the shares sorted on the root container page (needed if Zeroconf is
disabled).

14 years agoSort the list of shares.
William McBrine [Sun, 8 Nov 2009 14:43:48 +0000 (8 09:43 -0500)]
Sort the list of shares.

14 years agoMerge commit 'wmcbrine/master'
Eric von Bayer [Tue, 3 Nov 2009 16:59:58 +0000 (3 08:59 -0800)]
Merge commit 'wmcbrine/master'

14 years agoInclude time in the fields extracted from .TiVo files.
William McBrine [Mon, 2 Nov 2009 01:06:31 +0000 (1 20:06 -0500)]
Include time in the fields extracted from .TiVo files.

14 years agoRestore the functionality of the old "time" metadata keyword, plus more;
William McBrine [Mon, 2 Nov 2009 00:11:27 +0000 (1 19:11 -0500)]
Restore the functionality of the old "time" metadata keyword, plus more;
"time: file" to use file datestamps, "time: oad" to use originalAirDate.
Note that startTime and stopTime are still derived, not specified. To
Do: I think this could be tighter.

14 years agoPrevent channel block from crossing a line boundary.
Eric von Bayer [Sun, 25 Oct 2009 17:46:08 +0000 (25 10:46 -0700)]
Prevent channel block from crossing a line boundary.

14 years agoImproved error checking.
Eric von Bayer [Sun, 25 Oct 2009 17:42:24 +0000 (25 10:42 -0700)]
Improved error checking.
Assertion created error and therefor didn't end up being posted to the title.

14 years agoFixed the pyTivo.conf.dist to say fast_listing vs fast_index.
Eric von Bayer [Fri, 23 Oct 2009 18:31:28 +0000 (23 11:31 -0700)]
Fixed the pyTivo.conf.dist to say fast_listing vs fast_index.

14 years agoAdded code to make errors show up as a virtual file.
Eric von Bayer [Fri, 23 Oct 2009 06:15:38 +0000 (22 23:15 -0700)]
Added code to make errors show up as a virtual file.
Hopefully this will help people to see any issues that come up
instead of having to look at pytivo's output.

14 years agoMade improper frame rates in a time structure become a warning.
Eric von Bayer [Fri, 23 Oct 2009 04:32:09 +0000 (22 21:32 -0700)]
Made improper frame rates in a time structure become a warning.
Apparently some DVDs have a malformed frame rate in cell time structures.  Also fixed some file permissions.

14 years agoAudio specification plus better error checking.
Eric von Bayer [Tue, 20 Oct 2009 22:26:22 +0000 (20 15:26 -0700)]
Audio specification plus better error checking.
See the pyTivo.conf.dist for info on the audio_spec option.

14 years agoMore details from EyeTV metadata; use .eyetvp instead of .eyetvr; always
William McBrine [Mon, 12 Oct 2009 09:13:02 +0000 (12 05:13 -0400)]
More details from EyeTV metadata; use .eyetvp instead of .eyetvr; always
set the title, even when setting seriesTitle and episodeTitle.

14 years agoInitial support for metadata in .eyetv bundles. Need more samples to
William McBrine [Sun, 11 Oct 2009 08:53:08 +0000 (11 04:53 -0400)]
Initial support for metadata in .eyetv bundles. Need more samples to
confirm that this is sensible. More fields could be used.

14 years agoFix for bug mentioned by dbw on 10/9/2009
Eric von Bayer [Fri, 9 Oct 2009 19:46:25 +0000 (9 12:46 -0700)]
Fix for bug mentioned by dbw on 10/9/2009

14 years agoFixes for bugs at the end of a transfer.
Eric von Bayer [Wed, 7 Oct 2009 05:24:55 +0000 (6 22:24 -0700)]
Fixes for bugs at the end of a transfer.
- Now properly displays "Transfer Complete"
- Deletes files that the user aborts.

14 years agoMerge commit 'wmcbrine/master'
Eric von Bayer [Wed, 7 Oct 2009 04:09:23 +0000 (6 21:09 -0700)]
Merge commit 'wmcbrine/master'

14 years agoAdd in forgotten recording in progress icon.
Eric von Bayer [Wed, 7 Oct 2009 03:48:52 +0000 (6 20:48 -0700)]
Add in forgotten recording in progress icon.

14 years agoBetter looking more functional Togo module. New version supports queuing, if the...
Eric von Bayer [Wed, 7 Oct 2009 03:44:50 +0000 (6 20:44 -0700)]
Better looking more functional Togo module.  New version supports queuing, if the server is stopped with files queued, they will be downloaded when the server starts again.  The look has been updated to have some nice icons and formatting improvements.

14 years agoImprovements to togo module
Eric von Bayer [Wed, 7 Oct 2009 03:36:55 +0000 (6 20:36 -0700)]
Improvements to togo module
Added queueing, better looking look and feel, restart any queued files
that weren't fully downloaded in a previous run.

14 years agoAdd some icons to the togo web page to make it a little easier to read.
Eric von Bayer [Tue, 6 Oct 2009 02:00:52 +0000 (5 19:00 -0700)]
Add some icons to the togo web page to make it a little easier to read.

14 years agoGeneralized staged callbacks (will be used for togo changes)
Eric von Bayer [Tue, 6 Oct 2009 01:19:11 +0000 (5 18:19 -0700)]
Generalized staged callbacks (will be used for togo changes)

14 years agoGeneralized webserver functionality to allow serving http://<server>:<port>/plugin...
Eric von Bayer [Tue, 6 Oct 2009 01:04:31 +0000 (5 18:04 -0700)]
Generalized webserver functionality to allow serving <server>:<port>/plugin/<plugin name>/content/<any file>

14 years agoAdd DVD Video Plugin to the plugins directory.
Tivo User [Tue, 6 Oct 2009 00:37:29 +0000 (5 17:37 -0700)]
Add DVD Video Plugin to the plugins directory.

14 years agoSuppress "'NoneType' object has no attribute 'properties'" -- still not
William McBrine [Mon, 5 Oct 2009 22:20:37 +0000 (5 18:20 -0400)]
Suppress "'NoneType' object has no attribute 'properties'" -- still not
sure why this arises, though.

14 years agoSkip malformed lines in metadata: tags with no value, or values with no
William McBrine [Sun, 27 Sep 2009 17:17:55 +0000 (27 13:17 -0400)]
Skip malformed lines in metadata: tags with no value, or values with no
tag. Problem reported by "spocko".

14 years agoAllow reading CR-delimited metadata files. Suggested by "jannlinder".
William McBrine [Sun, 20 Sep 2009 02:37:41 +0000 (19 22:37 -0400)]
Allow reading CR-delimited metadata files. Suggested by "jannlinder".

14 years agoawb = BS. Reported by "jbernardis".
William McBrine [Sun, 20 Sep 2009 02:35:07 +0000 (19 22:35 -0400)]
awb = BS. Reported by "jbernardis".

14 years agoSuppress EBADF errors in Zeroconf.py.
William McBrine [Tue, 8 Sep 2009 05:23:08 +0000 (8 01:23 -0400)]
Suppress EBADF errors in Zeroconf.py.

14 years agoChanging to valid HTML broke the "Delete Section" button.
William McBrine [Sun, 23 Aug 2009 02:23:59 +0000 (22 22:23 -0400)]
Changing to valid HTML broke the "Delete Section" button.

14 years agoMove add-button width to common CSS.
William McBrine [Fri, 21 Aug 2009 21:08:18 +0000 (21 17:08 -0400)]
Move add-button width to common CSS.

14 years agoNew CSS classes "add-button" and "add-field".
William McBrine [Fri, 21 Aug 2009 21:02:28 +0000 (21 17:02 -0400)]
New CSS classes "add-button" and "add-field".

14 years agoCommon CSS for "display: none".
William McBrine [Fri, 21 Aug 2009 20:53:20 +0000 (21 16:53 -0400)]
Common CSS for "display: none".

14 years agoUsing "display: none" instead of "visibility: hidden" speeds up the
William McBrine [Fri, 21 Aug 2009 18:33:29 +0000 (21 14:33 -0400)]
Using "display: none" instead of "visibility: hidden" speeds up the
settings page in Firefox tremendously.

14 years agoDon't wrap the "NN Items" in Push screens, as in ToGo.
William McBrine [Sat, 8 Aug 2009 00:18:14 +0000 (7 20:18 -0400)]
Don't wrap the "NN Items" in Push screens, as in ToGo.

14 years agoNOWRAP -> CSS.
William McBrine [Fri, 7 Aug 2009 23:27:28 +0000 (7 19:27 -0400)]
NOWRAP -> CSS.

14 years agoSection switch "onchange" instead of "onclick" -- reported by Minckster
William McBrine [Thu, 6 Aug 2009 23:47:34 +0000 (6 19:47 -0400)]
Section switch "onchange" instead of "onclick" -- reported by Minckster
and Gonzotek as needed for the iPhone. This also allows you to change
sections by just arrowing up and down.

14 years agoCSS for the ToGo page; comments in template instead of final page.
William McBrine [Wed, 5 Aug 2009 20:42:38 +0000 (5 16:42 -0400)]
CSS for the ToGo page; comments in template instead of final page.

14 years agoStrict mode for the info_page.
William McBrine [Wed, 5 Aug 2009 20:22:59 +0000 (5 16:22 -0400)]
Strict mode for the info_page.

14 years agoMore CSS.
William McBrine [Wed, 5 Aug 2009 19:25:13 +0000 (5 15:25 -0400)]
More CSS.

14 years agoBetter title.
William McBrine [Wed, 5 Aug 2009 18:09:20 +0000 (5 14:09 -0400)]
Better title.

14 years agoRestore some pre-valid behavior. Partly suggestions of Minckster.
William McBrine [Wed, 5 Aug 2009 17:59:14 +0000 (5 13:59 -0400)]
Restore some pre-valid behavior. Partly suggestions of Minckster.

14 years agoFinally validates AND works with the strict doctype; moved some of the
William McBrine [Wed, 5 Aug 2009 17:24:05 +0000 (5 13:24 -0400)]
Finally validates AND works with the strict doctype; moved some of the
CSS to its own section. Still needs some tweaking to render as before.

14 years agoWith these changes, the settings page validates as HTML 4.01 Strict
William McBrine [Sat, 1 Aug 2009 00:54:16 +0000 (31 20:54 -0400)]
With these changes, the settings page validates as HTML 4.01 Strict
(unless you have shares with invalid characters in the names -- have to
work on that) -- but it still doesn't actually work if I use that
doctype. Hmpf.