From 95b423bb0a610a309f13eb8d52e44eb230cee155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Delattre?= Date: Fri, 30 Aug 2024 22:36:27 +0200 Subject: [PATCH] Fix embedded subtitles in polochonfs --- cmd/polochonfs/movies.go | 4 ++++ cmd/polochonfs/shows.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cmd/polochonfs/movies.go b/cmd/polochonfs/movies.go index 5954c62..12a354a 100644 --- a/cmd/polochonfs/movies.go +++ b/cmd/polochonfs/movies.go @@ -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{ diff --git a/cmd/polochonfs/shows.go b/cmd/polochonfs/shows.go index f4964ea..355aea0 100644 --- a/cmd/polochonfs/shows.go +++ b/cmd/polochonfs/shows.go @@ -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{