Skip to content

Commit 4793b78

Browse files
committed
Merge pull request #56 from forslund/pm_only-for-premium
Sets pm_only status correctly for premium members
2 parents 38cccee + caaa52b commit 4793b78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pycaching/cache.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,8 @@ def load(self):
563563
raise errors.PMOnlyException()
564564

565565
# details not avaliable for basic members for PM only caches ------------------------------
566+
pm_only_warning = root.find("p", "Warning NoBottomSpacing")
567+
self.pm_only = pm_only_warning and ("Premium Member Only" in pm_only_warning.text) or False
566568

567569
attributes_widget, inventory_widget, *_ = root.find_all("div", "CacheDetailNavigationWidget")
568570

0 commit comments

Comments
 (0)