fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.38k stars 345 forks source link

Uploading OPML should detect duplicate sources and update tags instead #362

Closed chr15m closed 11 years ago

chr15m commented 11 years ago

Currently if the same feed occurs twice in different sections of the OPML file a separate entry is created for each section/tag instead of adding new tags to the existing entry. This creates duplicate feed entries.

seanrand commented 11 years ago

Hmm, importing should already handle duplicate entries in the OPML file.

This is how it works currently. The source's title and other attributes are hashed when importing an OPML file. So, if the entries have the same title etc, it adds the tag to the existing entry instead of creating duplicate entries.

Could you provide an example OPML file or tell us from which program/service you exported the OPML file you're trying to import into selfoss?

chr15m commented 11 years ago

Ok, I worked out how this is happening - if you import two different OPML files with the same feed the feed is duplicated. This can be frustrating if your upload times out on a large OPML file and you try to upload the same one again - all entries already processed are duplicated.