Can we port Vinovo extractor #585
Labels
No labels
MediaFlow Proxy
autorelease: pending
autorelease: tagged
bug
documentation
duplicate
enhancement
help wanted
invalid
question
wontfix
🇩🇪 German
🇫🇷 French
🇮🇳 Indian
🇸🇦 Arabic
🌐 Multi
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/webstreamr-github#585
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi
I was trying to make the Vinovo extractor work(via mediaflow) and I am able to get the final url but is not playable...even on the same server where it was extracted...instead if I get the final link from browser and try it on same IP with curl it works lol
https://vinovo.to/e/r90rer94a7jy1Addon
`import { NotFoundError } from '../error';
import { Context, Format, Meta, UrlResult } from '../types';
import { Extractor } from './Extractor';
import {
buildMediaFlowProxyExtractorStreamUrl,
supportsMediaFlowProxy,
} from '../utils';
import * as cheerio from 'cheerio';
const FIREFOX_UA =
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) ' +
'AppleWebKit/537.36 (KHTML, like Gecko) ' +
'Chrome/143.0.0.0 Safari/537.36';
export class Vinovo extends Extractor {
public readonly id = 'Vinovo';
public readonly label = 'Vinovo (MFP)';
public override readonly ttl = 10800000; // 3h
public override viaMediaFlowProxy = true;
private domains = ['vinovo.to', 'vinovo.si'];
public supports(ctx: Context, url: URL): boolean {
return (
this.domains.some(d => url.host.includes(d)) &&
supportsMediaFlowProxy(ctx)
);
}
// Normalize to embed URL
public override normalize(url: URL): URL {
// Accept /d/ or /e/, always normalize to /e/
return new URL(url.href.replace(//[de]//, '/e/'));
}
protected async extractInternal(
ctx: Context,
url: URL,
meta: Meta
): Promise<UrlResult[]> {
//const referer = meta.referer ?? url.href;
'User-Agent': FIREFOX_UA,
Referer: 'https://vinovo.to/',
};
;
}
}`
Mediaflow
import re
import json
from typing import Dict, Any
from urllib.parse import urlparse
from mediaflow_proxy.extractors.base import BaseExtractor, ExtractorError
from mediaflow_proxy.utils.girc import girc
FIREFOX_UA = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/143.0.0.0 Safari/537.36"
)
class VinovoExtractor(BaseExtractor):
"""
Vinovo extractor for MediaFlow Proxy
What could it be...
No link to test.The link i had expired or was removed
Link seems to be again up and working