mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Use correct separator for "OR" condition in RSS rules
Although RSS rules were correctly parsed, the wrong separator for the "OR" condition was used to re-generate the string of the rule displayed in the preferences. Closes #2205.
This commit is contained in:
parent
060d3fc5b9
commit
5dede9e433
2 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ QVariantHash RssDownloadRule::toVariantHash() const
|
||||||
QVariantHash hash;
|
QVariantHash hash;
|
||||||
hash["name"] = m_name;
|
hash["name"] = m_name;
|
||||||
hash["must_contain"] = m_mustContain.join(" ");
|
hash["must_contain"] = m_mustContain.join(" ");
|
||||||
hash["must_not_contain"] = m_mustNotContain.join(" ");
|
hash["must_not_contain"] = m_mustNotContain.join("|");
|
||||||
hash["save_path"] = m_savePath;
|
hash["save_path"] = m_savePath;
|
||||||
hash["affected_feeds"] = m_rssFeeds;
|
hash["affected_feeds"] = m_rssFeeds;
|
||||||
hash["enabled"] = m_enabled;
|
hash["enabled"] = m_enabled;
|
||||||
|
|
|
@ -62,7 +62,7 @@ public:
|
||||||
inline bool isEnabled() const { return m_enabled; }
|
inline bool isEnabled() const { return m_enabled; }
|
||||||
inline void setEnabled(bool enable) { m_enabled = enable; }
|
inline void setEnabled(bool enable) { m_enabled = enable; }
|
||||||
inline QString mustContain() const { return m_mustContain.join(" "); }
|
inline QString mustContain() const { return m_mustContain.join(" "); }
|
||||||
inline QString mustNotContain() const { return m_mustNotContain.join(" "); }
|
inline QString mustNotContain() const { return m_mustNotContain.join("|"); }
|
||||||
inline bool useRegex() const { return m_useRegex; }
|
inline bool useRegex() const { return m_useRegex; }
|
||||||
inline void setUseRegex(bool enabled) { m_useRegex = enabled; }
|
inline void setUseRegex(bool enabled) { m_useRegex = enabled; }
|
||||||
inline QString episodeFilter() const { return m_episodeFilter; }
|
inline QString episodeFilter() const { return m_episodeFilter; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue