fix shorts not fetched
This commit is contained in:
parent
e939026ae9
commit
884b955388
2 changed files with 1 additions and 3 deletions
|
|
@ -91,8 +91,6 @@ class PoTokenWebViewLoginActivity : BaseActivity() {
|
|||
generateBtn = toolbar.findViewById(R.id.generate)
|
||||
webViewCompose = findViewById(R.id.webview_compose)
|
||||
cookieManager = CookieManager.getInstance()
|
||||
cookieManager.removeAllCookies(null)
|
||||
cookieManager.flush()
|
||||
|
||||
preferences = PreferenceManager.getDefaultSharedPreferences(this@PoTokenWebViewLoginActivity)
|
||||
preferences.edit().putString("genenerate_youtube_po_token_preferred_url", url).apply()
|
||||
|
|
|
|||
|
|
@ -655,7 +655,7 @@ object Extensions {
|
|||
|
||||
fun String.getIDFromYoutubeURL() : String? {
|
||||
val regex = Regex(
|
||||
"(?:youtube\\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*?[?&]v=)|youtu\\.be/)([^\"&?/\\s]{11})"
|
||||
"(?:youtube\\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?|(?:shorts)?)/|.*?[?&]v=)|youtu\\.be/)([^\"&?/\\s]{11})"
|
||||
)
|
||||
val match = regex.find(this)
|
||||
return if (match != null){
|
||||
|
|
|
|||
Loading…
Reference in a new issue