Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export/Import #4

Open
pixeldesu opened this issue Jan 20, 2020 · 4 comments
Open

Export/Import #4

pixeldesu opened this issue Jan 20, 2020 · 4 comments
Labels
feature New feature or request

Comments

@pixeldesu
Copy link
Owner

As the web app is local only and only saves data to the current browser/device, it would be convenient to have an export/import functionality for data.

As far as I know, Dexie (the library used to interface with IndexedDB) has another library that enables an export/import feature using file-blobs.

Either this or something else like a simple JSON export of the channel list could be used, which should be sufficient.

To Do:

  • Add an export/import feature to easily move data between devices/sessions
@pixeldesu pixeldesu added the feature New feature or request label Jan 20, 2020
@colons
Copy link
Contributor

colons commented Feb 6, 2020

it'd be very nice if you could import subs from the OPML export that youtube itself can do; feels like a good motivator for folks migrating

@pixeldesu
Copy link
Owner Author

@colons oh whoops, now it'd be fortunate if I had kept my Google account for that. Is there an example export somewhere that I could use to look into that format?

@colons
Copy link
Contributor

colons commented Feb 6, 2020

i'd be running it from a burner account if i were to share one for u, and im not in a position to do that rn, but it's a p standard opml sub list; i've yet to find a feed reader that won't accept it

(i'll run one off when i get the chance)

@pixeldesu
Copy link
Owner Author

Okay, I figured I have a burner one as well, the format is relatively simple.

<opml version="1.1">
    <body>
        <outline text="YouTube Subscriptions" title="YouTube Subscriptions">
            <outline text="Binging with Babish" title="Binging with Babish" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCJHA_jMfCvEnv-3kRjTCQXw" />
            <outline text="Sturmwaffel" title="Sturmwaffel" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCtmpz7ZiNbRQPdvz607X_gA" />
        </outline>
    </body>
</opml>

I could simply parse it with xml2js and pull out every outline, then grabbing the channel ID for the local database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants