mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-05-17 21:55:55 +08:00
Merge pull request #7368 from FineFindus/fix/export-subs
fix(Backup): use channel URL for subscription export
This commit is contained in:
@ -110,7 +110,7 @@ object ImportHelper {
|
|||||||
when (importFormat) {
|
when (importFormat) {
|
||||||
ImportFormat.NEWPIPE -> {
|
ImportFormat.NEWPIPE -> {
|
||||||
val newPipeChannels = subs.map {
|
val newPipeChannels = subs.map {
|
||||||
NewPipeSubscription(it.name, 0, "$YOUTUBE_FRONTEND_URL${it.url}")
|
NewPipeSubscription(it.name, 0, "$YOUTUBE_FRONTEND_URL/channel/${it.url}")
|
||||||
}
|
}
|
||||||
val newPipeSubscriptions = NewPipeSubscriptions(subscriptions = newPipeChannels)
|
val newPipeSubscriptions = NewPipeSubscriptions(subscriptions = newPipeChannels)
|
||||||
activity.contentResolver.openOutputStream(uri)?.use {
|
activity.contentResolver.openOutputStream(uri)?.use {
|
||||||
@ -123,7 +123,7 @@ object ImportHelper {
|
|||||||
FreetubeSubscription(
|
FreetubeSubscription(
|
||||||
it.name,
|
it.name,
|
||||||
"",
|
"",
|
||||||
"$YOUTUBE_FRONTEND_URL${it.url}"
|
"$YOUTUBE_FRONTEND_URL/channel/${it.url}"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
val freeTubeSubscriptions = FreetubeSubscriptions(subscriptions = freeTubeChannels)
|
val freeTubeSubscriptions = FreetubeSubscriptions(subscriptions = freeTubeChannels)
|
||||||
|
Reference in New Issue
Block a user