[mythtv-commits] Ticket #13299: Python Bindings fail to calculate date-time object

MythTV noreply at mythtv.org
Tue Jul 31 17:34:13 UTC 2018


#13299: Python Bindings fail to calculate date-time object
-------------------------------+--------------------------------
 Reporter:  rcrdnalor          |          Owner:  Raymond Wagner
     Type:  Patch - Bug Fix    |         Status:  new
 Priority:  minor              |      Milestone:  needs_triage
Component:  Bindings - Python  |        Version:  Unspecified
 Severity:  medium             |     Resolution:
 Keywords:                     |  Ticket locked:  0
-------------------------------+--------------------------------

Comment (by ijc):

 Adding to the release notes sounds wise.

 OOI was the nature of your local hacks such that this change would
 actually break them or just make them redundant? (I'm assuming they are
 somewhat representative of other workarounds people have made).

 > What I don't have/know how to do: testing any other impact to users or
 the bindings.

 I guess it should be sufficient to manually audit these looking for
 workarounds:
 {{{
 $ git grep -l -E "from MythTV import|import MythTV"
 mythplugins/mytharchive/mythburn/scripts/mythburn.py
 mythtv/bindings/python/MythTV/wikiscripts/wikiscripts.py
 mythtv/bindings/python/scripts/mythpython
 mythtv/contrib/imports/mirobridge/mirobridge.py
 mythtv/contrib/imports/mirobridge/mirobridge/metadata.py
 mythtv/programs/scripts/hardwareprofile/config.py
 mythtv/programs/scripts/hardwareprofile/distros/mythtv_data/data_mythtv.py
 mythtv/programs/scripts/internetcontent/nv_python_libs/bbciplayer/bbciplayer_api.py
 mythtv/programs/scripts/internetcontent/nv_python_libs/bliptv/bliptv_api.py
 mythtv/programs/scripts/internetcontent/nv_python_libs/common/common_api.py
 mythtv/programs/scripts/internetcontent/nv_python_libs/dailymotion/dailymotion_api.py
 mythtv/programs/scripts/internetcontent/nv_python_libs/mnvsearch/mnvsearch_api.py
 mythtv/programs/scripts/internetcontent/nv_python_libs/vimeo/vimeo_api.py
 mythtv/programs/scripts/internetcontent/nv_python_libs/youtube/youtube_api.py
 mythtv/programs/scripts/metadata/Movie/tmdb3.py
 mythtv/programs/scripts/metadata/Television/ttvdb.py
 }}}

 I suspect most of them don't use the TZ objects at all. Perhaps a more
 accurate shortlist would be:
 {{{
 $ git grep -l datetime $(git grep -l -E "from MythTV import|import
 MythTV")
 mythplugins/mytharchive/mythburn/scripts/mythburn.py
 mythtv/contrib/imports/mirobridge/mirobridge.py
 mythtv/programs/scripts/hardwareprofile/distros/mythtv_data/data_mythtv.py
 mythtv/programs/scripts/internetcontent/nv_python_libs/bbciplayer/bbciplayer_api.py
 mythtv/programs/scripts/internetcontent/nv_python_libs/common/common_api.py
 mythtv/programs/scripts/internetcontent/nv_python_libs/mnvsearch/mnvsearch_api.py
 mythtv/programs/scripts/internetcontent/nv_python_libs/vimeo/vimeo_api.py
 }}}

 I'm about to head out now but I shall try and go through the longer list
 soon.

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13299#comment:10>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list