Season/Episode info

Discuss the IceTV EPG and Recording Apps here

Moderators: Gully, peteru

Aardvark
Apprentice
Posts: 37
Joined: Sun May 18, 2008 17:51
Location: Sydney

Season/Episode info

Post by Aardvark » Mon Dec 14, 2020 13:10

Given that IceTV provides Season/Episode info in the format SnnEnn is it possible to get this added to Beyonwiz file names to assist with cataloguing TV Series?

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Season/Episode info

Post by prl » Mon Dec 14, 2020 13:47

Aardvark wrote:
Mon Dec 14, 2020 13:10
Given that IceTV provides Season/Episode info in the format SnnEnn is it possible to get this added to Beyonwiz file names to assist with cataloguing TV Series?

Not easily, though it may be possible in the future. That information is not currently stored in the Beyonwiz EPG, though it is in the IceTV EPG. Neither is it included in timers sent from IceTV to the Beyonwiz.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Aardvark
Apprentice
Posts: 37
Joined: Sun May 18, 2008 17:51
Location: Sydney

Re: Season/Episode info

Post by Aardvark » Mon Dec 14, 2020 17:52

OK thanks for the info

User avatar
peteru
Uber Wizard
Posts: 9741
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: Season/Episode info

Post by peteru » Mon Dec 14, 2020 23:15

Ask IceTV to implement a feature to add the season and episode to the title. That would be a win on all devices for all customers.

"Beauty lies in the hands of the beer holder."
Blog.

Aardvark
Apprentice
Posts: 37
Joined: Sun May 18, 2008 17:51
Location: Sydney

Re: Season/Episode info

Post by Aardvark » Tue Dec 15, 2020 10:54

Hi Prl,
I'll do that. Any particular delimiter required between Title SnnEnn ? (I notice in general it appears to be full stop)

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Season/Episode info

Post by prl » Tue Dec 15, 2020 11:07

IMO, if that change does get made on the IceTV server side, it should be in the program subtitle, not the title. However, the subtitle only appears in recording names if the "Composition of recording filenames" setting in MENU>Setup>TV>Recording settings is set to "Long filenames".

Adding it (no matter where it is added) should also be optional, as for adding the '[R]' tag on repeated program names.

The syntax of the episode tag could be something like SnEm, and should preferably not contain any characters not permitted in FAT extended filenames.

There is a better and more general way of dealing with currently unused IceTV metadata, but I haven't had time to look at it properly. IMO adding tags like this on the IceTV server side is a horrible hack.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Aardvark
Apprentice
Posts: 37
Joined: Sun May 18, 2008 17:51
Location: Sydney

Re: Season/Episode info

Post by Aardvark » Tue Dec 15, 2020 14:55

Hi Prl,
If you reckon doing it server side is just a hack then I'd rather leave it until it can be done properly, I can see that there's a lot more in the thread titled "Is it possible to get more info from Ice EPG on shows?".

Usually Season/Episode number is appended to the Title eg Doctor Who.S01E01 and then you can use something like tinyMediaManager which will grab Images, Cast, Synopsis etc from IMDB or TVDB which all gets picked up when using something like Plex or Emby.

I pull quite a few series off the V2 as I will be the only one to watch them and having the Season/Episode would make the post-processing really easy.

Thanks, Mike

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Season/Episode info

Post by prl » Tue Dec 15, 2020 16:21

Aardvark wrote:
Tue Dec 15, 2020 14:55
If you reckon doing it server side is just a hack then I'd rather leave it until it can be done properly, I can see that there's a lot more in the thread titled "Is it possible to get more info from Ice EPG on shows?".

What I hope to do should make most of the currently available metadata in the IceTV available in the Beyonwiz EPG, where developers can access it to do things like selectively add data like credits (actors/director), original language, season/episode number, country of origin, video quality (aspect ratio, colour / B/W, HD/SD), user rating (if IceTV ever gets around to publishing it), poster image and repeat flag (and when last shown).

The internal format of the EPG follows the broadcast standard, and there aren't specific places to put data like that in the Beyonwiz EPG. But there is a mechanism inside the data format for the extended description for a show that allows for general tagged text to be added, and that's where I intend to try putting the extra metadata.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: Season/Episode info

Post by MrQuade » Tue Dec 15, 2020 16:23

Would any of that assist with getting the information into the filename though?

I imagine that Aardvark is interested in having that so that the episodes can be more easily scraped by other software or media players (Kodi, Plex etc..)
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Season/Episode info

Post by prl » Tue Dec 15, 2020 16:42

MrQuade wrote:
Tue Dec 15, 2020 16:23
Would any of that assist with getting the information into the filename though?

Yes, once it's available in the EPG, it can be looked up when a timer creates the filename for the recording (the code already does a lookup of the recording in order to set the description in the timer). It won't be automatic as it would be if the (say) title had it appended at the server end, as in Aardvark's suggested format (though it would need to go in the timer title when a timer is sent and not (just?) in the EPG).

However, if it's done via my proposed mechanism, it could become an option to MENU>Setup>TV>Recording settings>Composition of recording filenames, and the season/episode information need not appear anywhere other than in the filenames.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
Gully
Moderator
Posts: 7736
Joined: Thu Aug 30, 2007 22:08
Location: Melbourne

Re: Season/Episode info

Post by Gully » Tue Dec 15, 2020 17:49

Aardvark wrote:
Tue Dec 15, 2020 14:55
Usually Season/Episode number is appended to the Title eg Doctor Who.S01E01 and then you can use something like tinyMediaManager which will grab Images, Cast, Synopsis etc from IMDB or TVDB which all gets picked up when using something like Plex or Emby.
Hi Mike

That change would cause problems for people using Autotimers, or require them to edit them all if they don't have the search set to begins with. And that is only one option in the search and match patterns in Autotimers.

Much better for it to be in the extended description as prl says.
Cheers
Gully
_____________
Beyonwiz U4
Logitech Harmony Elite
Google Pixel 6 Pro

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Tue Dec 15, 2020 18:45

I can add an option to IceTVDesc to put the season/episode numbers in the subtitle/short description: "Episode Title" -> "Episode Title (S01E02)". If you then use the long name recording format you'll have it with that. If you don't want the long name I could add another option to append it to the title (for the recording name), instead: "Show Title" -> "Show Title.S01E02" (extracted from the subtitle, so you'd still need that).

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Tue Dec 15, 2020 20:14

Gully wrote:
Tue Dec 15, 2020 17:49
That change would cause problems for people using Autotimers, or require them to edit them all if they don't have the search set to begins with. And that is only one option in the search and match patterns in Autotimers.

Likely there won't be many IceTV users that are using AutoTimers to any great degree.
Search types of "title starts with", "description match", and "partial match" won't be affected.

Therefore I believe this change would have very little impact.

User avatar
Gully
Moderator
Posts: 7736
Joined: Thu Aug 30, 2007 22:08
Location: Melbourne

Re: Season/Episode info

Post by Gully » Tue Dec 15, 2020 20:21

Grumpy_Geoff wrote:
Tue Dec 15, 2020 20:14

Likely there won't be many IceTV users that are using AutoTimers to any great degree.
Search types of "title starts with", "description match", and "partial match" won't be affected.

Therefore I believe this change would have very little impact.
All true but a solution that avoids that issue would help with anyone wanting switch between Autotimers and IceTV.
Cheers
Gully
_____________
Beyonwiz U4
Logitech Harmony Elite
Google Pixel 6 Pro

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Tue Dec 15, 2020 21:21

Gully wrote:
Tue Dec 15, 2020 20:21
Grumpy_Geoff wrote:
Tue Dec 15, 2020 20:14

Likely there won't be many IceTV users that are using AutoTimers to any great degree.
Search types of "title starts with", "description match", and "partial match" won't be affected.

Therefore I believe this change would have very little impact.
All true but a solution that avoids that issue would help with anyone wanting switch between Autotimers and IceTV.

I can't see how you would achieve that "switch" ability and not have any impact to AutoTimers at all, given the request is for the extra detail to be in the title.
"Let the IceTV AutoTimer users eat cake!".

adoxa's updated IceTVDesc idea sounds good to me.

Aardvark
Apprentice
Posts: 37
Joined: Sun May 18, 2008 17:51
Location: Sydney

Re: Season/Episode info

Post by Aardvark » Wed Dec 16, 2020 12:15

I would be happy to give Adoxa's proposed changes a try to see how it goes

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Wed Dec 16, 2020 17:39

Here you go (takes effect immediately, no need to restart; it will only effect new EPG entries). I've tested it runs, but whether it works is another matter (don't have IceTV).
Attachments
enigma2-plugin-extensions-IceTVDesc_1.0.6_all.ipk
(3.58 KiB) Downloaded 90 times

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Wed Dec 16, 2020 18:18

I nuked the EPG and fetched it.
The log showed the timers with updated descriptions, so it was easy to identify the events :)
Attachments
screenshot_2020-12-16_16-15-08.jpg

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Wed Dec 16, 2020 21:43

adoxa wrote:
Wed Dec 16, 2020 17:39
I've tested it runs, but whether it works is another matter (don't have IceTV).

Uh oh, chongo. Trouble when it hits the timer prepare time -

Code: Select all

{671}< 45289.799> [RecordTimer] Found enough free space to record
{671}< 45289.807> Traceback (most recent call last):
{671}< 45289.807>   File "/usr/lib/enigma2/python/timer.py", line 264, in calcNextActivation
{671}< 45289.824>   File "/usr/lib/enigma2/python/timer.py", line 335, in processActivation
{671}< 45289.825>   File "/usr/lib/enigma2/python/RecordTimer.py", line 1047, in doActivate
{671}< 45289.828>   File "/usr/lib/enigma2/python/RecordTimer.py", line 521, in activate
{671}< 45289.829>   File "/usr/lib/enigma2/python/RecordTimer.py", line 390, in tryPrepare
{671}< 45289.829>   File "/usr/lib/enigma2/python/Plugins/Extensions/IceTVDesc/hook.py", line 25, in run
{671}< 45289.834>   File "/usr/lib/enigma2/python/Plugins/Extensions/IceTVDesc/hook.py", line 72, in calculateFilename
{671}< 45289.835> TypeError: unsupported operand type(s) for +=: 'instancemethod' and 'str'
{671}< 45289.835> [ePyObject] (CallObject(<bound method RecordTimer.calcNextActivation of <RecordTimer.RecordTimer instance at 0x720289e0>>,()) failed)
It kept crashing on startup (because the timer kept firing), so I downreaded to 1.05

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Wed Dec 16, 2020 21:57

I think I've fixed it, but I'm not sure. If not, I've kept the crash, so you'll know...
Attachments
enigma2-plugin-extensions-IceTVDesc_1.0.6.1_all.ipk
(3.59 KiB) Downloaded 51 times

paullings
Master
Posts: 247
Joined: Sat Dec 13, 2014 06:37
Location: Newcastle

Re: Season/Episode info

Post by paullings » Thu Dec 17, 2020 07:10

Hi Adoxa,

I've tried the newer version this morning. Crashed again on timer startup unfortunately.
Enigma2_crash_2020-12-17_08-02-18.log
(17.71 KiB) Downloaded 74 times
Robert

U4 2TB (Jan 2018) 19.3.20211010 , HDMI
T3 1TB (Dec 2014) 19.3.20211010 , Front Panel 20057, HDMI, Warkus'd 2018 & still going
IceTV, Series2Folder, OverlayHD 1.70
Samsung 55"OLED TV, Apple TV, ReadyNAS 214, Sonos Arc, Harmony Ultimate One
Windows 10

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Thu Dec 17, 2020 10:08

Oh, silly me. This should fix it. Thanks to you both for being the guinea pigs.
Attachments
enigma2-plugin-extensions-IceTVDesc_1.0.6.2_all.ipk
(3.58 KiB) Downloaded 45 times

paullings
Master
Posts: 247
Joined: Sat Dec 13, 2014 06:37
Location: Newcastle

Re: Season/Episode info

Post by paullings » Thu Dec 17, 2020 11:13

adoxa wrote:
Thu Dec 17, 2020 10:08
Oh, silly me. This should fix it. Thanks to you both for being the guinea pigs.
Seems fine now. No crash on timer start.
Just a small thing I've noticed in the EPG some Series Episode are separated by a comma and others by a colon. Is this just the way ICETV sends it.
Last edited by paullings on Thu Dec 17, 2020 11:18, edited 1 time in total.
Robert

U4 2TB (Jan 2018) 19.3.20211010 , HDMI
T3 1TB (Dec 2014) 19.3.20211010 , Front Panel 20057, HDMI, Warkus'd 2018 & still going
IceTV, Series2Folder, OverlayHD 1.70
Samsung 55"OLED TV, Apple TV, ReadyNAS 214, Sonos Arc, Harmony Ultimate One
Windows 10

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Thu Dec 17, 2020 11:15

adoxa wrote:
Thu Dec 17, 2020 10:08
This should fix it.

Yep, it did -

Code: Select all

{661}<  7987.955> [eDVBServiceRecord] Recording to /media/hdd/movie/20201217 0855 - 9Rush Perth - Tanked_S08E01.ts...
Thanks.

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Thu Dec 17, 2020 11:40

paullings wrote:
Thu Dec 17, 2020 11:13
Just a small thing I've noticed in the EPG some Series Episode are separated by a comma and others by a colon. Is this just the way ICETV sends it.

That is IceTV's subtitle field contents

e.g.
IceTV_subtitle.png
OWIF EPG display
IceTV_subtitle.png (32.34 KiB) Viewed 3419 times

From the IceTV guide -

Africa On A Plate
'Morocco Fusion'
SBS Food, 9:00am, Thu, 17 Dec 2020, 30 minutes
Morocco has so much to offer among it's cuisine, and in this episode Chef Zama Memela is introduced to a marinated salmon and finally, the famed pigeon pie.
Series, 2014, South Africa, English, Documentary, Arts & Culture, Cooking, Food/Wine, Season 1 Episode 23

Struggle Meals
'Street Food Faves At Home'
SBS Food, 9:30am, Thu, 17 Dec 2020, 30 minutes
Frankie makes street food at home, and it's fresher, healthier, and cheaper! Then get ready, because you've never seen rice like this before.
Series, United States, English, Cooking, Season 1 Episode 8

The Cook's Pantry With Matt Sinclair
'Series 2: Episode 48'
SBS Food, 10:00am, Thu, 17 Dec 2020, 30 minutes
Matt kicks things off with a wholesome barley and pancetta soup, and Courtney continues with the soup theme with her broccoli soup and cheesy recipe.
Series, Australia, English, Documentary, Lifestyle, Entertainment, Cooking, Food/Wine

Rachel Khoo: My Swedish Kitchen
'Fishing On The Westcoast'
SBS Food, 10:30am, Thu, 17 Dec 2020, 30 minutes
Rachel serves a grilled lobster with a cabbage and caraway salad, and her own gravlax poke bowl. For dessert, she prepares white chocolate and berry coconut mountains.
Rachel Khoo
Series, 2019, United Kingdom, English, Lifestyle, Cooking, Food/Wine, Season 1 Episode 6

Italian Food Safari
'Series 1, Episode 1'
SBS Food, 11:00am, Thu, 17 Dec 2020, 30 minutes
Join food explorer Maeve O'Meara and legendary Melbourne chef Guy Grossi in an Australian-wide celebration of traditional Italian food and culture. Tonight, Maeve takes a look at the tradition of the wood-fired oven, which many Italians constructed in their backyards when they arrived in Australia.
Series, Australia, English, Food/Wine, Season 1 Episode 1

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Thu Dec 17, 2020 12:03

Grumpy_Geoff wrote:
Thu Dec 17, 2020 11:40
'Series 2: Episode 48'

'Series 1, Episode 1'
Season 1 Episode 1
Shouldn't be a problem to normalise it, if you prefer one over the other (another option? Or two: enable normalise, choose character). I should also be able to detect it and avoid adding the bracketed version.

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Thu Dec 17, 2020 13:37

adoxa wrote:
Thu Dec 17, 2020 12:03
Shouldn't be a problem to normalise it, if you prefer one over the other (another option? Or two: enable normalise, choose character). I should also be able to detect it and avoid adding the bracketed version.

Personally, I don't need the "normalising" option, but detecting the existence of "series" and "episode" in the subtitle/episode title and then not appending (SnnEnn) is something of value.
But if (SnnEnn) is not in the short description, does that mean it won't be appended to the file name?

paullings
Master
Posts: 247
Joined: Sat Dec 13, 2014 06:37
Location: Newcastle

Re: Season/Episode info

Post by paullings » Thu Dec 17, 2020 13:45

I would prefer Option 2 which gives people a choice. My preferred option is SnnEnn (without brackets) for either long or short filename.
By the way what is the difference between standard filename and long filename if any.
Robert

U4 2TB (Jan 2018) 19.3.20211010 , HDMI
T3 1TB (Dec 2014) 19.3.20211010 , Front Panel 20057, HDMI, Warkus'd 2018 & still going
IceTV, Series2Folder, OverlayHD 1.70
Samsung 55"OLED TV, Apple TV, ReadyNAS 214, Sonos Arc, Harmony Ultimate One
Windows 10

Aardvark
Apprentice
Posts: 37
Joined: Sun May 18, 2008 17:51
Location: Sydney

Re: Season/Episode info

Post by Aardvark » Thu Dec 17, 2020 15:08

I've just loaded this up and it's looking good so far. When appending to the filename it needs to be in the format .SnnEnn as this seems to be the convention that most information scrapers expect

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Thu Dec 17, 2020 15:38

paullings wrote:
Thu Dec 17, 2020 13:45
By the way what is the difference between standard filename and long filename if any.

The "Long filenames" value for the "Composition of recording filenames" setting adds the short/extended event description -
YYYYMMDD HHMM - service name - recording name - description.ts

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Thu Dec 17, 2020 15:50

Grumpy_Geoff wrote:
Thu Dec 17, 2020 13:37
But if (SnnEnn) is not in the short description, does that mean it won't be appended to the file name?
I can detect if it's the words and append the shortened form.

paullings wrote:
Thu Dec 17, 2020 13:45
I would prefer Option 2 which gives people a choice. My preferred option is SnnEnn (without brackets) for either long or short filename.
The file name would always be SnnEnn, the new option is intended to convert subtitles of the form "Season S, Episode E" to "Season S: Episode E" or vice versa.

Aardvark wrote:
Thu Dec 17, 2020 15:08
When appending to the filename it needs to be in the format .SnnEnn as this seems to be the convention that most information scrapers expect
I did use dot, but it got replaced with underscore later. There's no need for dot to be replaced (file names already use multiple dots), so I might remove it from the list of invalid characters.

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Season/Episode info

Post by prl » Thu Dec 17, 2020 16:29

adoxa wrote:
Thu Dec 17, 2020 12:03
Grumpy_Geoff wrote:
Thu Dec 17, 2020 11:40
'Series 2: Episode 48'

'Series 1, Episode 1'
Season 1 Episode 1
Shouldn't be a problem to normalise it, if you prefer one over the other (another option? Or two: enable normalise, choose character). I should also be able to detect it and avoid adding the bracketed version.

The season/episode numbers shouldn't normally need to be scraped out of the long description: there are distinct show fields "season" and "episode-num".

Note that the season isn't always in the range 0..99: it is sometimes the year, for example:
S2019E04 Just For Laughs
S2020E16 Basketball: WNBL - Woman's National Basketball League
S2020E228 The Drum
S2020E01 One Plus One
S2020E04 Landline Summer

and sometimes there are just more that 100 seasons:
S130E12 House Hunters
S125E06 House Hunters International
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Thu Dec 17, 2020 16:51

prl wrote:
Thu Dec 17, 2020 16:29
The season/episode numbers shouldn't normally need to be scraped out of the long description: there are distinct show fields "season" and "episode-num".
That's what I use. There's no need to add the short form when the subtitle is already using the words.

Note that the season isn't always in the range 0..99...
I prepend a zero if it's one character, otherwise use it as is.

Aardvark wrote:
Thu Dec 17, 2020 15:08
When appending to the filename it needs to be in the format .SnnEnn as this seems to be the convention that most information scrapers expect
From what I gather tinyMediaManager should be able to parse the underscore fine, but looks to recommend a dash. What else are you using?

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Season/Episode info

Post by prl » Thu Dec 17, 2020 16:52

I see in Grumpy_Geoff's examples, there's one show that has no explicit season/episode number data, but has the information in the subtitle: The Cook's Pantry with Matt Sinclair.

It's not alone. Here are some other shows that are in the same state:
Mister Maker
Outback Truckers
Horrible Histories
The Cook's Pantry With Matt Sinclair
Poh & Co. Bitesize

They have a bit of a variety of Season/Series formats to scrape:
Series 3: Episode 15
Series 3 , Episode 16 [yes, there's random space in there!]
Series 3, Episode 18
Season 2, Episode 11

And some are just a mess:
The Amazing Race 2020 - Episode 12 - Now It's About Winning
Destination Flavour - China Bitesize: Episode 14
LPL Pro Rocket League 2020 - CS:GO Season 3 - Week 4 - Round 2
Lawn Bowls:The Bowls Show 2020 - Episode 20
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Thu Dec 17, 2020 16:58

And just to be difficult; "Series" and "Season" -
Ready Steady Cook UK
'Series 18/19: Episode 34'
Series, United Kingdom, English, Entertainment, Game Show, Cooking, Season 1 Episode 34

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Season/Episode info

Post by prl » Thu Dec 17, 2020 17:12

Grumpy_Geoff wrote:
Thu Dec 17, 2020 16:58
And just to be difficult; "Series" and "Season" -
Ready Steady Cook UK
'Series 18/19: Episode 34'
Series, United Kingdom, English, Entertainment, Game Show, Cooking, Season 1 Episode 34

Yes, that's in my list of forms, but not the combined season numbers:
Series 3, Episode 18
Season 2, Episode 11
I missed the Ready Steady Cook example, because it's not one that needs screenscraping, because it has explicit season/episode-num metadata, though that doesn't agree with what's in the subtitle:

Code: Select all

"season":"1","episode-num":"33",
"title":"Ready Steady Cook UK",
"subtitle":"Series 18/19: Episode 33"
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Season/Episode info

Post by prl » Thu Dec 17, 2020 17:13

I've emailed Daniel Hall@IceTV about the inconsistencies in the season/episode data.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Thu Dec 17, 2020 17:38

'Series 18/19: Episode 34'
Series 3: Episode 15
Series 3 , Episode 16 [yes, there's random space in there!]
Series 3, Episode 18
Season 2, Episode 11
Those should now be recognised (the first will have a filename with S18_19E34).
The Amazing Race 2020 - Episode 12 - Now It's About Winning
Destination Flavour - China Bitesize: Episode 14
LPL Pro Rocket League 2020 - CS:GO Season 3 - Week 4 - Round 2
Lawn Bowls:The Bowls Show 2020 - Episode 20
Didn't bother with those.
Attachments
enigma2-plugin-extensions-IceTVDesc_1.0.6.3_all.ipk
(3.75 KiB) Downloaded 49 times

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Season/Episode info

Post by prl » Thu Dec 17, 2020 17:49

adoxa wrote:
Thu Dec 17, 2020 17:38
'Series 18/19: Episode 34'
Those should now be recognised (the first will have a filename with S18_19E34).

It has conflicting season/episode-num data, which would make the filename string S01E33.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Thu Dec 17, 2020 18:42

prl wrote:
Thu Dec 17, 2020 17:49
adoxa wrote:
Thu Dec 17, 2020 17:38
'Series 18/19: Episode 34'
Those should now be recognised (the first will have a filename with S18_19E34).

It has conflicting season/episode-num data, which would make the filename string S01E33.
The subtitle contains season/episode info, so the short form is not appended, so the numbers are extracted directly from the subtitle, so that's S18/19E34, which is converted to S18_19E34.

Aardvark
Apprentice
Posts: 37
Joined: Sun May 18, 2008 17:51
Location: Sydney

Re: Season/Episode info

Post by Aardvark » Thu Dec 17, 2020 19:16

I've used both Plex and Emby.

Both of them have info on formatting https://support.plex.tv/articles/naming ... how-files/, https://support.emby.media/support/solu ... -tv-naming

Just taking a quick look it appears that they are fairly flexible on delimiters

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Thu Dec 17, 2020 20:27

Bang with 1.0.6.3 -

Code: Select all

{661}< 40367.913> [RecordTimer] Found enough free space to record
{661}< 40367.915> Traceback (most recent call last):
{661}< 40367.916>   File "/usr/lib/enigma2/python/timer.py", line 264, in calcNextActivation
{661}< 40367.936>   File "/usr/lib/enigma2/python/timer.py", line 335, in processActivation
{661}< 40367.937>   File "/usr/lib/enigma2/python/RecordTimer.py", line 1047, in doActivate
{661}< 40367.941>   File "/usr/lib/enigma2/python/RecordTimer.py", line 521, in activate
{661}< 40367.941>   File "/usr/lib/enigma2/python/RecordTimer.py", line 390, in tryPrepare
{661}< 40367.943>   File "/usr/lib/enigma2/python/Plugins/Extensions/IceTVDesc/hook.py", line 25, in run
{661}< 40367.949>   File "/usr/lib/enigma2/python/Plugins/Extensions/IceTVDesc/hook.py", line 78, in calculateFilename
{661}< 40367.949> NameError: global name 'show' is not defined
{661}< 40367.950> [ePyObject] (CallObject(<bound method RecordTimer.calcNextActivation of <RecordTimer.RecordTimer instance at 0x718d3b20>>,()) failed)
It was chomping on -
Ready Steady Cook UK
'Series 18/19: Episode 34'
SBS Food, 6:00pm, Thu, 17 Dec 2020, 50 minutes
Comedians Les Dennis and Bobby Davro are the star guests on another classic 20-minute cooking challenge with Ainsley Harriott.
Ainsley Harriott
Series, United Kingdom, English, Entertainment, Game Show, Cooking, Season 1 Episode 34

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Thu Dec 17, 2020 21:27

Oh dear, another silly mistake.

Aardvark wrote:
Thu Dec 17, 2020 19:16
I've used both Plex and Emby.
They both look like they prefer Show Title - SnnEnn, so maybe - would be better; that would also fit the existing separators. For long names you'd also get - Episode Title, where I could temporarily remove the short form from the description, or use the short form if the description is using words.
Attachments
enigma2-plugin-extensions-IceTVDesc_1.0.6.4_all.ipk
(3.75 KiB) Downloaded 60 times

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Fri Dec 18, 2020 11:22

Using 1.0.6.4, this one didn't get the Sn/En filename annotation -
Horrible Histories
'Series 3, Episode 2'
ABC ME, 8:45am, Fri, 18 Dec 2020, 30 minutes
REPEAT
Medieval knights discover the most disgusting way to attack a castle, the Saxons demonstrate the stupidest way to lose a battle and the kings of England demonstrate how to remember them all, through the power of song.
Series, United Kingdom, English, Children, Comedy, Historical


Likely because no Season/Episode details were provided in the EPG data, just the subtitle/short description.

Code: Select all

{662}<  6598.250> [RecordTimer] Filename calculated as: '/media/hdd/movie/20201218 0840 - ABC ME - Horrible Histories'

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Season/Episode info

Post by prl » Fri Dec 18, 2020 11:48

Grumpy_Geoff wrote:
Fri Dec 18, 2020 11:22
Likely because no Season/Episode details were provided in the EPG data, just the subtitle/short description.
That's correct. There's no season/episode-num metadata for Horrible Histories (at least in the current EPG):
No episode info: Horrible Histories:: Series 3, Episode 1
No episode info: Horrible Histories:: Series 3, Episode 2
No episode info: Horrible Histories:: Series 3, Episode 3
No episode info: Horrible Histories:: Series 3, Episode 4
No episode info: Horrible Histories:: Series 3, Episode 5
No episode info: Horrible Histories:: Series 3, Episode 6
No episode info: Horrible Histories:: Series 3, Episode 7
No episode info: Horrible Histories:: Series 3, Episode 8
No episode info: Horrible Histories:: Series 3, Episode 9
No episode info: Horrible Histories:: Series 3, Episode 10
No episode info: Horrible Histories:: Series 3, Episode 11
No episode info: Horrible Histories:: Series 3, Episode 13
(title:: short description format)
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Fri Dec 18, 2020 13:10

Grumpy_Geoff wrote:
Fri Dec 18, 2020 11:22
Using 1.0.6.4, this one didn't get the Sn/En filename annotation -
Likely because no Season/Episode details were provided in the EPG data, just the subtitle/short description.
Should be extracting it directly from the description:

Code: Select all

>>> n = re.match(r"(?:Series|Season) ([\d/]+) *. *Episode (\d+)$", "Series 3, Episode 2")
>>> n.group(1)
'3'
>>> n.group(2)
'2'
>>>
Peter's message suggests I need to detect leading spaces, but Geoff's does not (stripped out separately before display?).

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Season/Episode info

Post by prl » Fri Dec 18, 2020 16:03

adoxa wrote:
Fri Dec 18, 2020 13:10
Grumpy_Geoff wrote:
Fri Dec 18, 2020 11:22
Using 1.0.6.4, this one didn't get the Sn/En filename annotation -
Likely because no Season/Episode details were provided in the EPG data, just the subtitle/short description.
Should be extracting it directly from the description:

Code: Select all

>>> n = re.match(r"(?:Series|Season) ([\d/]+) *. *Episode (\d+)$", "Series 3, Episode 2")
>>> n.group(1)
'3'
>>> n.group(2)
'2'
>>>
Peter's message suggests I need to detect leading spaces, but Geoff's does not (stripped out separately before display?).

Sorry, that was a typo in my description of the "No episode" format. There are no leading spaces in those examples I posted: the space after the :: is part of the print format string. I've corrected the post.

But anyway, I'd be tending towards using re.search() rather than re.match() to catch things like:
No episode info: <Poh & Co.> <Bitesize: Series 2, Episode 6>
Format now "<title> <subtitle>".

Then whether there are leading spaces or not becomes moot.

I'd also be inclined to put " +" between the Season/Series/Episode strings and the number match rather than just a single space.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Season/Episode info

Post by adoxa » Fri Dec 18, 2020 17:25

I did some basic tests this time, so let's see how this one goes.

I've replaced the dot separator with " - ". The long name will remove season/episode info from the description (if the description then becomes empty it will become the short form and the name is left alone). It checks for the words at the end of the description. Thus, with long names, you should have:

Code: Select all

Morocco Fusion (S01E23) -> ... - S01E23 - Morocco Fusion.ts
Series 3, Episode 2 -> ... - S03E02.ts
Bitesize: Series 2, Episode 6 -> ... - S02E06 - Bitesize.ts
Attachments
enigma2-plugin-extensions-IceTVDesc_1.0.6.5_all.ipk
(3.86 KiB) Downloaded 54 times

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Season/Episode info

Post by Grumpy_Geoff » Fri Dec 18, 2020 18:58

Outback Truckers
'Season 3, Episode 2'
7mate HD, 4:30pm, Fri, 18 Dec 2020, 60 minutes
ON NOW REPEAT
Matt Adams pulls a high strung herd of bulls; and, the Stephens Brothers embark on a backwoods mission to save millions of irate bees.
Series, Australia, English, Real Life


==> 20201218 1625 - 7mateHD Perth - Outback Truckers - S03E02.ts

So that bit now works. :)

Post Reply

Return to “Ice TV”