Skip to content

Commit

Permalink
Fix embedded subtitles in polochonfs
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdel authored and PouuleT committed Aug 31, 2024
1 parent 6ac965d commit 4f840ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/polochonfs/movies.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ func (pfs *polochonfs) updateMovies() {
movieDirNode.addChild(movieNode)

for _, sub := range m.Subtitles {
if sub.Embedded {
continue
}

url, err := pfs.client.DownloadURL(sub)
if err != nil {
log.WithFields(log.Fields{
Expand Down
4 changes: 4 additions & 0 deletions cmd/polochonfs/shows.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ func (pfs *polochonfs) updateShows() {
}

for _, sub := range episode.Subtitles {
if sub.Embedded {
continue
}

url, err = pfs.client.DownloadURL(sub)
if err != nil {
log.WithFields(log.Fields{
Expand Down

0 comments on commit 4f840ea

Please sign in to comment.