Update supported video extensions
This commit is contained in:
@@ -233,8 +233,8 @@ func (t *TorrentManager) writeTorrentToFile(torrent *Torrent) {
|
||||
func (t *TorrentManager) applyMediaInfoDetails(torrent *Torrent) {
|
||||
changesApplied := false
|
||||
torrent.SelectedFiles.IterCb(func(_ string, file *File) {
|
||||
isPlayable := utils.IsPlayable(file.Path) || t.IsPlayable(file.Path)
|
||||
if file.MediaInfo != nil || file.State.Is("broken_file") || !isPlayable {
|
||||
isPlayable := utils.IsVideo(file.Path) || t.IsPlayable(file.Path)
|
||||
if file.MediaInfo != nil || !file.State.Is("ok_file") || !isPlayable {
|
||||
return
|
||||
}
|
||||
unrestrict := t.UnrestrictFileUntilOk(file, true)
|
||||
|
||||
Reference in New Issue
Block a user