2018-07-30 17:34:57 +00:00
|
|
|
<% content_for "header" do %>
|
2018-12-20 21:32:09 +00:00
|
|
|
<title><%= translate(locale, "Import and Export Data") %> - Invidious</title>
|
2018-07-30 17:34:57 +00:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="h-box">
|
2019-09-24 17:31:33 +00:00
|
|
|
<form class="pure-form pure-form-aligned" enctype="multipart/form-data" action="/data_control?referer=<%= URI.encode_www_form(referer) %>" method="post">
|
2018-07-30 17:34:57 +00:00
|
|
|
<fieldset>
|
2018-12-20 21:32:09 +00:00
|
|
|
<legend><%= translate(locale, "Import") %></legend>
|
2018-07-30 17:34:57 +00:00
|
|
|
|
|
|
|
<div class="pure-control-group">
|
2018-12-20 21:32:09 +00:00
|
|
|
<label for="import_youtube"><%= translate(locale, "Import Invidious data") %></label>
|
2018-07-30 17:34:57 +00:00
|
|
|
<input type="file" id="import_invidious" name="import_invidious">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-control-group">
|
2018-12-20 21:32:09 +00:00
|
|
|
<label for="import_youtube">
|
2020-12-06 20:46:58 +00:00
|
|
|
<a rel="noopener" target="_blank" href="https://github.com/schwukas/invidious/wiki/Export-YouTube-subscriptions">
|
2018-12-20 21:32:09 +00:00
|
|
|
<%= translate(locale, "Import YouTube subscriptions") %>
|
|
|
|
</a>
|
|
|
|
</label>
|
2018-07-30 17:34:57 +00:00
|
|
|
<input type="file" id="import_youtube" name="import_youtube">
|
|
|
|
</div>
|
2019-03-23 19:05:13 +00:00
|
|
|
|
2018-08-13 19:17:20 +00:00
|
|
|
<div class="pure-control-group">
|
2018-12-21 15:50:01 +00:00
|
|
|
<label for="import_freetube"><%= translate(locale, "Import FreeTube subscriptions (.db)") %></label>
|
2018-08-13 19:17:20 +00:00
|
|
|
<input type="file" id="import_freetube" name="import_freetube">
|
|
|
|
</div>
|
|
|
|
|
2018-07-30 17:34:57 +00:00
|
|
|
<div class="pure-control-group">
|
2018-12-20 21:32:09 +00:00
|
|
|
<label for="import_newpipe_subscriptions"><%= translate(locale, "Import NewPipe subscriptions (.json)") %></label>
|
2018-07-30 17:34:57 +00:00
|
|
|
<input type="file" id="import_newpipe_subscriptions" name="import_newpipe_subscriptions">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-control-group">
|
2018-12-20 21:32:09 +00:00
|
|
|
<label for="import_newpipe"><%= translate(locale, "Import NewPipe data (.zip)") %></label>
|
2018-07-30 17:34:57 +00:00
|
|
|
<input type="file" id="import_newpipe" name="import_newpipe">
|
|
|
|
</div>
|
2019-03-23 19:05:13 +00:00
|
|
|
|
2018-07-30 17:34:57 +00:00
|
|
|
<div class="pure-controls">
|
2018-12-20 21:32:09 +00:00
|
|
|
<button type="submit" class="pure-button pure-button-primary"><%= translate(locale, "Import") %></button>
|
2018-07-30 17:34:57 +00:00
|
|
|
</div>
|
|
|
|
|
2018-12-20 21:32:09 +00:00
|
|
|
<legend><%= translate(locale, "Export") %></legend>
|
2018-07-30 17:34:57 +00:00
|
|
|
|
|
|
|
<div class="pure-control-group">
|
2018-12-20 21:32:09 +00:00
|
|
|
<a href="/subscription_manager?action_takeout=1"><%= translate(locale, "Export subscriptions as OPML") %></a>
|
2018-07-30 17:34:57 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-control-group">
|
2018-12-20 21:32:09 +00:00
|
|
|
<a href="/subscription_manager?action_takeout=1&format=newpipe"><%= translate(locale, "Export subscriptions as OPML (for NewPipe & FreeTube)") %></a>
|
2018-07-30 17:34:57 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-control-group">
|
2018-12-20 21:32:09 +00:00
|
|
|
<a href="/subscription_manager?action_takeout=1&format=json"><%= translate(locale, "Export data as JSON") %></a>
|
2018-07-30 17:34:57 +00:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
2018-08-17 16:04:38 +00:00
|
|
|
</div>
|