-
Notifications
You must be signed in to change notification settings - Fork 393
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
Option to import bookmark folders as tags #80
base: master
Are you sure you want to change the base?
Conversation
I have the same feature available in my proposal of importing files from firefox JSON export. So, when the pull request will be accepted, I'll enable this feature for JSON import also. |
@sijnak That's great! Having a JSON import makes it a lot easier for people to move to Shaarli from Firefox, etc. |
@levjj Great option ! How can I benefit from it ? I would like to import my GBookmarks into shaarli, but the loss of the tags is what prevents me to switch. However I am not at all a PHP developper.... |
@PatDeLux Until @sebsauvage merges this pull request, you could just clone [this branch](https://github.com/levjj/Shaarli/tree/import-folders-as-tags reposiroty) of Shaarli and import the Google Bookmarks HTML file (be sure to check the "overwrite existing links" option). |
@levjj : thanks for replying. Your link "this branch" returns me a 404 error...(sorry to bother you - this Github etc..is 100% new for me - I am mostly developing on SQL Server and VBA) |
@PatDeLux Sorry, should have checked the link. Try this one instead. |
Christopher, Patrick Honorez On 26 June 2013 23:06, Christopher S. [email protected] wrote:
|
Yep, this is an open issue in Shaarli. See #22 |
Thanks, I really needed that option. |
Priceless ! |
Shaarli (community fork) now uses a dedicated Netscape bookmark parser:
|
There is no standard way of export tags in Netscape's bookmarks file format. When exporting from Google Bookmarks, folders are used as tags. The following example shows a bookmark that was tagged with History and Programming:
In order to support imports from Google Bookmarks (and other services which use folders during the export), I added an option to the import form which uses the folders as tags. For bookmarks with multiple tags the overwrite options needs to be enabled as well. Additionally, the timestamp needs to be adjusted from microseconds to normal unix seconds during the import.
The result of a successful import has the right tags for all imported links: