projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
746aa73
)
Fix exceptions on some metadata.xml.
author
Carl Hetherington
<cth@carlh.net>
Sat, 29 Feb 2020 19:56:49 +0000
(20:56 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 29 Feb 2020 19:56:49 +0000
(20:56 +0100)
hacks/filmsum
patch
|
blob
|
history
diff --git
a/hacks/filmsum
b/hacks/filmsum
index dae0699d151f125f66dabcf310b0e9fa58c67fef..bda8740c3667797f0091ca263bbd816b4284f521 100755
(executable)
--- a/
hacks/filmsum
+++ b/
hacks/filmsum
@@
-63,9
+63,11
@@
for c in soup.Metadata.Playlist.children:
print()
note(' Type', c.Type.text)
note(' Position', dcp_time(c.Position))
print()
note(' Type', c.Type.text)
note(' Position', dcp_time(c.Position))
- note(' Video rate', c.VideoFrameRate.text)
- note(' Video length', content_time_from_frames(c.VideoLength, float(c.VideoFrameRate.text)))
- note(' Audio rate', c.AudioFrameRate.text)
+ if c.VideoFrameRate:
+ note(' Video rate', c.VideoFrameRate.text)
+ note(' Video length', content_time_from_frames(c.VideoLength, float(c.VideoFrameRate.text)))
+ if c.AudioFrameRate:
+ note(' Audio rate', c.AudioFrameRate.text)
bool_note(' Reference video', c.ReferenceVideo, lambda x: not x)
bool_note(' Reference audio', c.ReferenceAudio, lambda x: not x)
bool_note(' Reference subtitle', c.ReferenceSubtitle, lambda x: not x)
bool_note(' Reference video', c.ReferenceVideo, lambda x: not x)
bool_note(' Reference audio', c.ReferenceAudio, lambda x: not x)
bool_note(' Reference subtitle', c.ReferenceSubtitle, lambda x: not x)