mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: ensure foldername is extracted correctly for mediafusion results
This commit is contained in:
@@ -41,8 +41,8 @@ export class MediaFusion extends BaseWrapper {
|
||||
const torrentNameRegex = /📂\s*(.+)/;
|
||||
const description = stream.description || stream.title;
|
||||
const match = torrentNameRegex.exec(description || '');
|
||||
if (match && match[1].trim() !== parseResult.result.filename) {
|
||||
parseResult.result.folderName = match[1].trim();
|
||||
if (match && match[1].trim() !== parseResult.result.filename?.trim()) {
|
||||
parseResult.result.folderName = match[1].split('┈➤')[1].trim();
|
||||
}
|
||||
}
|
||||
return parseResult;
|
||||
|
||||
Reference in New Issue
Block a user