mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
commit
3744a326f1
@ -74,13 +74,13 @@ class RouterActivity : BaseActivity() {
|
|||||||
val videoId = uri.getQueryParameter("v")
|
val videoId = uri.getQueryParameter("v")
|
||||||
|
|
||||||
intent.putExtra(IntentData.videoId, videoId)
|
intent.putExtra(IntentData.videoId, videoId)
|
||||||
|
uri.getQueryParameter("t")?.let { intent.putExtra(IntentData.timeStamp, it.toLong()) }
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
val timeStamp = uri.getQueryParameter("t")
|
|
||||||
val videoId = uri.path!!.replace("/", "")
|
val videoId = uri.path!!.replace("/", "")
|
||||||
|
|
||||||
intent.putExtra(IntentData.videoId, videoId)
|
intent.putExtra(IntentData.videoId, videoId)
|
||||||
if (timeStamp != null) intent.putExtra(IntentData.timeStamp, timeStamp.toLong())
|
uri.getQueryParameter("t")?.let { intent.putExtra(IntentData.timeStamp, it.toLong()) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return intent
|
return intent
|
||||||
|
@ -55,7 +55,7 @@ class ShareDialog(
|
|||||||
}
|
}
|
||||||
var url = "$host$path"
|
var url = "$host$path"
|
||||||
|
|
||||||
if (shareObjectType == ShareObjectType.VIDEO && binding!!.timeCodeSwitch.isChecked) {
|
if (shareObjectType == ShareObjectType.VIDEO && position != null && binding!!.timeCodeSwitch.isChecked) {
|
||||||
url += "&t=${binding!!.timeStamp.text}"
|
url += "&t=${binding!!.timeStamp.text}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user