mirror of
https://github.com/Viren070/stremio-gdrive-addon.git
synced 2025-12-01 23:20:04 +01:00
feat: move visualTags to description
This commit is contained in:
+10
-7
@@ -207,14 +207,17 @@ function compareByField(a, b, field) {
|
||||
|
||||
function createStream(parsedFile, accessToken) {
|
||||
let name = `${MANIFEST.name}\n${parsedFile.resolution}`;
|
||||
if (parsedFile.visualTags.length > 0) {
|
||||
name += `\n${parsedFile.visualTags.join(" | ")}`;
|
||||
}
|
||||
let description = `🎥 ${parsedFile.quality} ${parsedFile.encode}`;
|
||||
|
||||
if (parsedFile.audioTags.length > 0) {
|
||||
description += ` 🎧 ${parsedFile.audioTags.join(" | ")}`;
|
||||
}
|
||||
let description = `🎥 ${parsedFile.quality} ${parsedFile.encode ? '🎞️ ' + parsedFile.encode : ''}`;
|
||||
|
||||
if (parsedFile.visualTags.length > 0 || parsedFile.audioTags.length > 0) {
|
||||
description += "\n";
|
||||
|
||||
description +=
|
||||
parsedFile.visualTags.length > 0 ? `📺 ${parsedFile.visualTags.join(" | ")} ` : "";
|
||||
description +=
|
||||
parsedFile.audioTags.length > 0 ? `🎧 ${parsedFile.audioTags.join(" | ")}` : "";
|
||||
}
|
||||
|
||||
description += `\n📦 ${parsedFile.formattedSize}`;
|
||||
if (parsedFile.languages.length !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user