Skip to content

Commit

Permalink
Merge pull request #135 from ukdtom/tommy-work
Browse files Browse the repository at this point in the history
Intro Markers and some titles
  • Loading branch information
ukdtom authored May 22, 2020
2 parents 45fd75e + bbd49be commit 0b4f0b8
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 7 deletions.
15 changes: 12 additions & 3 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,16 @@ def sectionList():
with io.open(prefsFile, 'wb') as outfile:
json.dump(data, outfile, indent=4)
except Exception, e:
with io.open(prefsFile, 'wb', encoding='utf8') as outfile:
json.dump(data, outfile, indent=4)
try:
Log.Debug('Exception handling due to %s', str(e))
with io.open(prefsFile, 'wb', encoding='utf8') as outfile:
json.dump(data, outfile, indent=4)
pass
except Exception, e:
Log.Debug('Exception handling due to %s', str(e))
with io.open(prefsFile, 'w', encoding='utf8') as outfile:
json.dump(data, outfile, indent=4)
pass
restart()
return

Expand Down Expand Up @@ -1081,7 +1089,8 @@ def scanShowDB(myMediaURL, outFile, level=None, key=None):
strUrl = ''.join((
misc.GetLoopBack(),
'/library/metadata/',
misc.GetRegInfo(Episode, 'ratingKey')
misc.GetRegInfo(Episode, 'ratingKey'),
'?includeMarkers=1'
))
myExtendedInfoURL = genParam(strUrl)
Episode = XML.ElementFromURL(
Expand Down
2 changes: 1 addition & 1 deletion Contents/Code/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
########################################################################

# APP specific stuff
VERSION = ' V2.0.0.10'
VERSION = ' V2.0.0.11'
APPNAME = 'ExportTools'
NAME = APPNAME + VERSION
DESCRIPTION = 'Export Plex libraries to csv-files or xlsx-files'
Expand Down
2 changes: 1 addition & 1 deletion Contents/Code/moviefields.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
dateTimeFields = ['addedAt', 'updatedAt', 'lastViewedAt']

# Fields that contains a timestamp and should return a time
timeFields = ['duration']
timeFields = ['duration', 'startTimeOffset', 'endTimeOffset']

# Levels that only req. a single call towards PMS
singleCall = ['Level 1', 'Level 2', 'PlayCount 1']
Expand Down
9 changes: 7 additions & 2 deletions Contents/Code/tvfields.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
dateTimeFields = ['addedAt', 'updatedAt',
'lastViewedAt', 'originallyAvailableAt']

# Fields that contains a timestamp and should return a time
timeFields = ['duration']
# Fields that contains a timestamp and should return a time,
# see moviefields

# Levels that only req. a single call towards PMS
singleCall = ['Level 1', 'Level 2', 'Level 3', 'PlayCount 1']
Expand Down Expand Up @@ -72,6 +72,8 @@
]

Level_4 = [
('Intro Start', 'Marker[@type="intro"]/@startTimeOffset'),
('Intro Stop', 'Marker[@type="intro"]/@endTimeOffset'),
('MetaDB Link', '@guid'),
('MetaData Language', '@guid'),
('Part File Combined',
Expand Down Expand Up @@ -135,6 +137,9 @@
]

Level_6 = [
('Audio Stream Title', 'Media/Part/Stream[@streamType=2]/@title'),
('Audio Stream Display Title',
'Media/Part/Stream[@streamType=2]/@displayTitle'),
('Audio Stream Selected', 'Media/Part/Stream[@streamType=2]/@selected'),
('Audio Stream Default', 'Media/Part/Stream[@streamType=2]/@default'),
('Audio Stream Codec', 'Media/Part/Stream[@streamType=2]/@codec'),
Expand Down
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
V2.0.0.11:
- New:
- #129 TV Series Export - Audio Title
- Added Audio stream title and Audio stream displayTitle to shows level 6
- #134 Consider export of Intro marker for episodes
- Added to Level 4 and above

V2.0.0.10:
- New:
- #131 Additional device logging
Expand Down

0 comments on commit 0b4f0b8

Please sign in to comment.