Skip to content

Commit

Permalink
Fix #71 francetv regression on episode and season
Browse files Browse the repository at this point in the history
  • Loading branch information
simulot committed Feb 22, 2021
1 parent 79547e4 commit 4098490
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions cmd/aspiratv/who.json
@@ -0,0 +1,26 @@
{
"Destinations": {
"Documentaires": "${HOME}/Videos/Documentaires",
"Jeunesse": "${HOME}/Videos/Jeunesse",
"Séries": "${HOME}/Videos/Series",
"News": "${HOME}/Videos/News"
},
"Providers": {
"artetv": {
"Enabled": false
},
"gulli":{
"Enabled": false
},
"francetv":{
"Enabled": true
}
},
"WatchList": [
{
"Show": "Doctor Who",
"Provider": "francetv",
"Destination": "Séries"
}
]
}
2 changes: 1 addition & 1 deletion providers/francetv/search.go
Expand Up @@ -309,7 +309,7 @@ func (p *FranceTV) visitPageSerie(ctx context.Context, mr *matcher.MatchRequest,
}

subtitle := e.ChildText("span.c-card-video__textarea-subtitle")
if match = reAired.FindStringSubmatch(e.Text); len(match) == 4 {
if match = reAnalyseTitle.FindStringSubmatch(subtitle); len(match) == 4 {
info.Season, _ = strconv.Atoi(match[1])
info.Episode, _ = strconv.Atoi(match[2])
info.Title = strings.TrimSpace(match[3])
Expand Down

0 comments on commit 4098490

Please sign in to comment.