mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
1aefc5b540
* shard: update to crystal 0.31.0 Additionally, no longer use the Crystal "markdown" library which has been removed from the Crystal stdlib in version 0.31.0. See https://github.com/crystal-lang/crystal/pull/8115. Also fix some deprecation warnings using the following commands: find . \( -type d -name .git -prune \) -o -type f -exec sed -i 's/URI\.escape/URI\.encode_www_form/g' "{}" \; find . \( -type d -name .git -prune \) -o -type f -exec sed -i 's/URI\.unescape/URI\.decode_www_form/g' "{}" \; sed -i 's/while \%pull\.kind \!\= \:end_object/until \%pull\.kind\.end_object\?/g' src/invidious/helpers/patch_mapping.cr
58 lines
2.7 KiB
Text
58 lines
2.7 KiB
Text
<% content_for "header" do %>
|
|
<title><%= translate(locale, "Import and Export Data") %> - Invidious</title>
|
|
<% end %>
|
|
|
|
<div class="h-box">
|
|
<form class="pure-form pure-form-aligned" enctype="multipart/form-data" action="/data_control?referer=<%= URI.encode_www_form(referer) %>" method="post">
|
|
<fieldset>
|
|
<legend><%= translate(locale, "Import") %></legend>
|
|
|
|
<div class="pure-control-group">
|
|
<label for="import_youtube"><%= translate(locale, "Import Invidious data") %></label>
|
|
<input type="file" id="import_invidious" name="import_invidious">
|
|
</div>
|
|
|
|
<div class="pure-control-group">
|
|
<label for="import_youtube">
|
|
<a rel="noopener" target="_blank" href="https://support.google.com/youtube/answer/6224202?hl=en">
|
|
<%= translate(locale, "Import YouTube subscriptions") %>
|
|
</a>
|
|
</label>
|
|
<input type="file" id="import_youtube" name="import_youtube">
|
|
</div>
|
|
|
|
<div class="pure-control-group">
|
|
<label for="import_freetube"><%= translate(locale, "Import FreeTube subscriptions (.db)") %></label>
|
|
<input type="file" id="import_freetube" name="import_freetube">
|
|
</div>
|
|
|
|
<div class="pure-control-group">
|
|
<label for="import_newpipe_subscriptions"><%= translate(locale, "Import NewPipe subscriptions (.json)") %></label>
|
|
<input type="file" id="import_newpipe_subscriptions" name="import_newpipe_subscriptions">
|
|
</div>
|
|
|
|
<div class="pure-control-group">
|
|
<label for="import_newpipe"><%= translate(locale, "Import NewPipe data (.zip)") %></label>
|
|
<input type="file" id="import_newpipe" name="import_newpipe">
|
|
</div>
|
|
|
|
<div class="pure-controls">
|
|
<button type="submit" class="pure-button pure-button-primary"><%= translate(locale, "Import") %></button>
|
|
</div>
|
|
|
|
<legend><%= translate(locale, "Export") %></legend>
|
|
|
|
<div class="pure-control-group">
|
|
<a href="/subscription_manager?action_takeout=1"><%= translate(locale, "Export subscriptions as OPML") %></a>
|
|
</div>
|
|
|
|
<div class="pure-control-group">
|
|
<a href="/subscription_manager?action_takeout=1&format=newpipe"><%= translate(locale, "Export subscriptions as OPML (for NewPipe & FreeTube)") %></a>
|
|
</div>
|
|
|
|
<div class="pure-control-group">
|
|
<a href="/subscription_manager?action_takeout=1&format=json"><%= translate(locale, "Export data as JSON") %></a>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|