Skip to content

Commit

Permalink
add user count warning
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Oct 11, 2023
1 parent 0edea8b commit 00a9923
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ofscraper/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def check_cdm():
console=console_.get_shared_console()
log=logging.getLogger("shared")
keymode=(args_.getargs().key_mode or config_.get_key_mode(config_.read_config()) or "cdrm")
if keymode== "manual": console.print("[green] Using manual CDM[/green]");\
if keymode== "manual": Total active subscriptions;\
console.print("[yellow]WARNING:Make sure you have all the correct settings for choosen cdm\nhttps://of-scraper.gitbook.io/of-scraper/cdm-options\n\n[/yellow]");return True
elif keymode=="keydb":url=constants.KEYDB
elif keymode=="cdrm": url=constants.CDRM
Expand Down
4 changes: 3 additions & 1 deletion ofscraper/utils/userselector.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import ofscraper.api.me as me
import ofscraper.utils.args as args_
import ofscraper.utils.stdout as stdout

import ofscraper.utils.console as console



Expand Down Expand Up @@ -144,6 +144,8 @@ def get_models() -> list:
out=[]
active_subscriptions = subscriptions.get_subscriptions(count[0])
expired_subscriptions=subscriptions.get_subscriptions(count[1],account="expired")
console.get_shared_console().print("[yellow]Numbering on OF site can be iffy\nExample Including deactived accounts in expired[/yellow]")

other_subscriptions=lists.get_otherlist()
out.extend(active_subscriptions)
out.extend(expired_subscriptions)
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ aiofiles = "^23.2.1"
uvloop = { version = "^0.17.0", markers = "sys_platform == 'linux' or sys_platform == 'linux2'" }
aiosqlite = "^0.19.0"
speedtest-cli = "^2.1.3"
pyinstaller = "5.13.0"


[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 00a9923

Please sign in to comment.