Revert "use region param in videos api endpoint" (#317)
This reverts commit 79d9e0f069.
This commit is contained in:
1 parent
79d9e0f069
commit
405e1aa703
3 files changed
+2
-10
No files matched your search
@@ -107,7 +107,6 @@ namespace Invidious
|
||||
cacheSeconds = 18000 ' 5 hours
|
||||
cancellation = invalid
|
||||
tryCount = 2
|
||||
region = invalid
|
||||
|
||||
if options <> invalid
|
||||
if options.DoesExist("cacheSeconds")
|
||||
@@ -119,9 +118,6 @@ namespace Invidious
|
||||
if options.DoesExist("tryCount")
|
||||
tryCount = options.tryCount
|
||||
end if
|
||||
if options.DoesExist("region")
|
||||
region = options.region
|
||||
end if
|
||||
end if
|
||||
|
||||
instance = m.GetInstance()
|
||||
@@ -129,10 +125,6 @@ namespace Invidious
|
||||
|
||||
request = HttpClient.Get(url)
|
||||
|
||||
if not StringUtils.IsNullOrEmpty(region)
|
||||
request.QueryParam("region", region)
|
||||
end if
|
||||
|
||||
request.CacheSeconds(cacheSeconds)
|
||||
request.Cancellation(cancellation)
|
||||
|
||||
|
||||
Reference in new issue
Block a user