mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-20 14:06:09 +05:00
refactor and update
This commit is contained in:
@@ -78,7 +78,7 @@ func GetMimeType(filename string) string {
|
||||
return "*/*"
|
||||
}
|
||||
|
||||
func GetPlayableFiles(st state.TorrentStats) []state.TorrentFileStat {
|
||||
func GetPlayableFiles(st state.TorrentStatus) []state.TorrentFileStat {
|
||||
files := make([]state.TorrentFileStat, 0)
|
||||
for _, f := range st.FileStats {
|
||||
if GetMimeType(f.Path) != "*/*" {
|
||||
|
||||
Reference in New Issue
Block a user