mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
commit
3744a326f1
@ -74,13 +74,13 @@ class RouterActivity : BaseActivity() {
|
||||
val videoId = uri.getQueryParameter("v")
|
||||
|
||||
intent.putExtra(IntentData.videoId, videoId)
|
||||
uri.getQueryParameter("t")?.let { intent.putExtra(IntentData.timeStamp, it.toLong()) }
|
||||
}
|
||||
else -> {
|
||||
val timeStamp = uri.getQueryParameter("t")
|
||||
val videoId = uri.path!!.replace("/", "")
|
||||
|
||||
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
|
||||
|
@ -55,7 +55,7 @@ class ShareDialog(
|
||||
}
|
||||
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}"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user