We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When importing an HTML-File from e.g. Pocket no tags are imported. So I just fixed that issue and it worked great.
To fix that add the following in 'inc/poche/Poche.class.php' to the import function :
if ( isset($record['tags']) && trim($record['tags']) ) { //@TODO: set tags //get all already set tags to preven duplicates $already_set_tags = array(); $entry_tags = $this->store->retrieveTagsByEntry($id); foreach ($entry_tags as $tag) { $already_set_tags[] = $tag['value']; } $tags = explode(',',$record['tags']); foreach($tags as $key => $tag_value) { $value = trim($tag_value); if ($value && !in_array($value, $already_set_tags)) { $tag = $this->store->retrieveTagByValue($value); if (is_null($tag)) { # we create the tag $tag = $this->store->createTag($value); $sequence = ''; if (STORAGE == 'postgres') { $sequence = 'tags_id_seq'; } $tag_id = $this->store->getLastId($sequence); } else { $tag_id = $tag['id']; } # we assign the tag to the article $this->store->setTagToEntry($tag_id, $id); } } } }
The text was updated successfully, but these errors were encountered:
which version is that? this was already reported as a bug in #457 and fixed in #459...
Sorry, something went wrong.
Tags should be imported. Maybe Pocket changed their format. Will look.
I think Pocket changed their format ... We have several users who can't import pocket data (see http://support.wallabag.org)
This is fixed in dev version.
tcitworld
No branches or pull requests
When importing an HTML-File from e.g. Pocket no tags are imported. So I just fixed that issue and it worked great.
To fix that add the following in 'inc/poche/Poche.class.php' to the import function :
The text was updated successfully, but these errors were encountered: