youtube-watchmarker icon indicating copy to clipboard operation
youtube-watchmarker copied to clipboard

Import asks for .database file needs .txt file

Open s3thGG opened this issue 3 years ago • 6 comments

when using import file explorer needs to be set to all files instead of current default .database to accept an exported txt file.

s3thGG avatar May 10 '21 02:05 s3thGG

As shown below, the export function exports a .database file.

https://github.com/sniklaus/youtube-watchmarker/blob/740c361662f606ac3b75bfbc5ce4269b952f39c9/background.js#L260

The import function thus imports .database files by default. How come the database you are trying to import has a .txt ending?

sniklaus avatar May 10 '21 03:05 sniklaus

I am not sure, when I click export I just get a txt file

ghost avatar May 10 '21 03:05 ghost

Are you using Chrome or Firefox? The behavior in Firefox is as expected as shown below, but I haven't tried Chrome.

https://user-images.githubusercontent.com/1238034/117601298-d82fe300-b102-11eb-9d53-2af29d5827c4.mp4

sniklaus avatar May 10 '21 03:05 sniklaus

yes this happens on chrome, but not firefox

ghost avatar May 10 '21 04:05 ghost

Thanks for letting me know! I'll try to fix this with the next version, but not sure whether Chrome will let me. :upside_down_face:

sniklaus avatar May 10 '21 04:05 sniklaus

thanks :D

ghost avatar May 10 '21 04:05 ghost

Seeing this on my chrome machines too. If chrome won't let you change the exported file extension, maybe just accept .txt as a valid extension on chrome?

rossc719g avatar Mar 14 '23 05:03 rossc719g

I will fix it tonight and release a new version. Please feel free to reopen this issue should the problem persist after I released the next version. Thanks again for bringing this up. :+1:

sniklaus avatar Oct 09 '23 20:10 sniklaus