warn if alreaday subscribed to a feed
This commit is contained in:
parent
b0a2961acc
commit
f73577ae08
|
@ -1,7 +1,9 @@
|
||||||
# Offpunk History
|
# Offpunk History
|
||||||
|
|
||||||
## 0.5 - Unreleased
|
## 0.5 - Unreleased
|
||||||
|
- Improving subscriptions with more feedback and better detection
|
||||||
- Avoid deprecated SSL methods (thanks Phoebos for the report)
|
- Avoid deprecated SSL methods (thanks Phoebos for the report)
|
||||||
|
- Fixed multiple crashes
|
||||||
|
|
||||||
## 0.4 - Feb 21st 2022
|
## 0.4 - Feb 21st 2022
|
||||||
UPGRADE: Users who subscribed to pages before 0.4 should run once the command "list subscribe subscribed". Without that, the subscribed list will be seen as a normal list by sync.
|
UPGRADE: Users who subscribed to pages before 0.4 should run once the command "list subscribe subscribed". Without that, the subscribed list will be seen as a normal list by sync.
|
||||||
|
|
|
@ -2921,7 +2921,14 @@ To unsubscribe, remove the page from the "subscribed" list."""
|
||||||
counter = 0
|
counter = 0
|
||||||
for l in subs:
|
for l in subs:
|
||||||
link = self.gi.absolutise_url(l[0])
|
link = self.gi.absolutise_url(l[0])
|
||||||
|
already = []
|
||||||
|
for li in self.list_lists():
|
||||||
|
if self.list_is_subscribed(li):
|
||||||
|
if self.list_has_url(link,li):
|
||||||
|
already.append(li)
|
||||||
stri += "[%s] %s [%s]\n"%(counter+1,link,l[1])
|
stri += "[%s] %s [%s]\n"%(counter+1,link,l[1])
|
||||||
|
if len(already) > 0:
|
||||||
|
stri += "\t -> (already subscribed through lists %s)\n"%(str(already))
|
||||||
counter += 1
|
counter += 1
|
||||||
stri += "\n"
|
stri += "\n"
|
||||||
stri += "Which feed do you want to subsribe ? > "
|
stri += "Which feed do you want to subsribe ? > "
|
||||||
|
|
Loading…
Reference in New Issue