mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-19 05:00:21 +02:00
Multi-host support + add '.net' host to APKPure source (#1250)
This commit is contained in:
@@ -7,9 +7,9 @@ import 'package:obtainium/providers/source_provider.dart';
|
||||
|
||||
class VLC extends AppSource {
|
||||
VLC() {
|
||||
host = 'videolan.org';
|
||||
hosts = ['videolan.org'];
|
||||
}
|
||||
get dwUrlBase => 'https://get.$host/vlc-android/';
|
||||
get dwUrlBase => 'https://get.${hosts[0]}/vlc-android/';
|
||||
|
||||
@override
|
||||
Future<Map<String, String>?> getRequestHeaders(
|
||||
@@ -21,7 +21,7 @@ class VLC extends AppSource {
|
||||
|
||||
@override
|
||||
String sourceSpecificStandardizeURL(String url) {
|
||||
return 'https://$host';
|
||||
return 'https://${hosts[0]}';
|
||||
}
|
||||
|
||||
Future<String?> getLatestVersion(String standardUrl) async {
|
||||
|
Reference in New Issue
Block a user