Tautulli / Tautulli-Issues

Bug reports for Tautulli
18 stars 3 forks source link

Newsletter: episode number broken when series uses date format #77

Open didyouexpectthat opened 6 years ago

didyouexpectthat commented 6 years ago

Version: V2.1.5-BETA Branch: beta Commit hash: b1dc5816a4e8209b954802fa0793186c2ae64b34 Operating system: Linux 4.9.0-0.bpo.5-amd64 Python version: 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2] What you did? Setup Newsletter. Sends out e-mail. Tautulli shows in newsletter 00,00,00,00,00, but episodes are setup for Date format, not what may seem to be typical date format. What happened? screenshot 2018-05-10 at 7 45 53 pm screenshot 2018-05-10 at 7 46 59 pm What you expected? Tautulli would show different episode numbers How can we reproduce your issue? The episode numbers created automatically by Plex. I use Plex DVR to record the episodes so no control over how they are created. What are your (relevant) settings? Not sure there are any relevant settings for this. EDIT: The file name is /data/tv/The 10 O'Clock News on KTVU Plus (2016)/Season 2018/The 10 O'Clock News on KTVU Plus (2016) - 2018-05-10 23 30 00 - Episode 05-10.ts , there is the sign of the 00... But Plex acknowledges this in date form. screenshot 2018-05-12 at 5 41 15 am

Link to logs: I can forward a copy of the newsletter.

JonnyWong16 commented 6 years ago

Can you post the XML data for one of those episodes?

https://support.plex.tv/articles/201998867-investigate-media-information-and-formats/

didyouexpectthat commented 6 years ago

Yep.

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="TV" librarySectionUUID="725dd294-e0e4-4ba1-9c92-11d0bafcfefc" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1525990867">
<Video ratingKey="51851" key="/library/metadata/51851" skipParent="1" parentRatingKey="50568" grandparentRatingKey="50567" guid="com.gracenote.onconnect://episode/12814988/2018-05-17" librarySectionTitle="TV" librarySectionID="2" librarySectionKey="/library/sections/2" type="episode" title="Episode 05-17" grandparentKey="/library/metadata/50567" parentKey="/library/metadata/50568" grandparentTitle="The 10 O'Clock News on KTVU Plus" parentTitle="Season 2018" summary="Major local news covering the stories that matter most to the Bay Area; weather reports; sports." parentIndex="2018" year="2018" thumb="/library/metadata/51851/thumb/1526628994" grandparentThumb="/library/metadata/50567/thumb/1526628984" duration="2690379" originallyAvailableAt="2018-05-17" addedAt="1526628984" updatedAt="1526628994">
<Media videoResolution="720" id="142378" duration="2690379" bitrate="10978" width="1280" height="720" aspectRatio="1.78" audioChannels="2" audioCodec="ac3" videoCodec="mpeg2video" container="mpegts" videoFrameRate="60p" optimizedForStreaming="0" origin="dvr" videoProfile="main">
<Part accessible="1" exists="1" id="142552" key="/library/parts/142552/1526628980/file.ts" duration="2690379" file="/data/tv/The 10 O'Clock News on KTVU Plus (2016)/Season 2018/The 10 O'Clock News on KTVU Plus (2016) - 2018-05-17 23 30 00 - Episode 05-17.ts" size="3691798112" container="mpegts" deepAnalysisVersion="2" optimizedForStreaming="0" packetLength="188" requiredBandwidths="10102,10096,10096,10096,10096,10096,10096,10096" videoProfile="main">
<Stream id="321010" streamType="1" codec="mpeg2video" index="0" bitrate="10594" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" closedCaptions="1" colorRange="tv" frameRate="59.940" height="720" level="4" profile="main" refFrames="1" requiredBandwidths="9718,9713,9713,9713,9713,9713,9713,9713" scanType="progressive" streamIdentifier="256" width="1280" displayTitle="Unknown (MPEG2VIDEO)"/>
<Stream id="321011" streamType="2" selected="1" codec="ac3" index="1" channels="2" bitrate="192" language="English" languageCode="eng" audioChannelLayout="stereo" requiredBandwidths="192,192,192,192,192,192,192,192" samplingRate="48000" streamIdentifier="257" displayTitle="English (AC3 Stereo)"/>
<Stream id="321012" streamType="2" codec="ac3" index="2" channels="2" bitrate="192" language="Español" languageCode="spa" audioChannelLayout="stereo" requiredBandwidths="192,192,192,192,192,192,192,192" samplingRate="48000" streamIdentifier="258" displayTitle="Español (AC3 Stereo)"/>
</Part>
</Media>
<Extras size="0"> </Extras>
</Video>
</MediaContainer>
JonnyWong16 commented 6 years ago

Could you get the XMl for the show level and the season level as well?

didyouexpectthat commented 6 years ago

Can you elaborate? There is no XML available at the show/season level. https://support.plex.tv/articles/201998867-investigate-media-information-and-formats/ claims that it is for the library item. Show level: image Season level: image

JonnyWong16 commented 6 years ago

Change the ratingKey (51851) in the URL of that episode XML to the parentRatingKey (50568) grandparentRatingKey (50567).

didyouexpectthat commented 6 years ago

Thanks. 50568:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="TV" librarySectionUUID="725dd294-e0e4-4ba1-9c92-11d0bafcfefc" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1525990867">
<Directory ratingKey="50568" key="/library/metadata/50568/children" parentRatingKey="50567" guid="local://50568" librarySectionTitle="TV" librarySectionID="2" librarySectionKey="/library/sections/2" type="season" title="Season 2018" parentKey="/library/metadata/50567" parentTitle="The 10 O'Clock News on KTVU Plus" summary="" index="2018" parentIndex="1" viewCount="3" lastViewedAt="1526814307" thumb="/library/metadata/50567/thumb/1522395394" parentThumb="/library/metadata/50567/thumb/1522395394" leafCount="7" viewedLeafCount="0" addedAt="1522395395">
<Extras size="0"></Extras>
</Directory>
</MediaContainer>

50567:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="TV" librarySectionUUID="725dd294-e0e4-4ba1-9c92-11d0bafcfefc" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1525990867">
<Directory ratingKey="50567" key="/library/metadata/50567/children" guid="com.gracenote.onconnect://show/12814988" librarySectionTitle="TV" librarySectionID="2" librarySectionKey="/library/sections/2" type="show" title="The 10 O'Clock News on KTVU Plus" titleSort="10 O'Clock News on KTVU Plus" summary="Major local news covering the stories that matter most to the Bay Area; weather reports; sports." index="1" viewCount="8" lastViewedAt="1526814307" year="2016" thumb="/library/metadata/50567/thumb/1522395394" originallyAvailableAt="2016-01-01" leafCount="7" viewedLeafCount="0" childCount="1" addedAt="1522395394" autoDeletionItemPolicyUnwatchedLibrary="-7" autoDeletionItemPolicyWatchedLibrary="7" flattenSeasons="0">
<Genre id="2399" filter="genre=2399" tag="News"/>
<Channel id="13464" filter="channel=13464" tag="36.1 KICUDT (Independent)"/>
<Location path="/data/tv/The 10 O'Clock News on KTVU Plus (2016)"/>
<Extras size="0"></Extras>
</Directory>
</MediaContainer>