ZMediumToMarkdown 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/CLI.rb +1 -1
- data/lib/Request.rb +1 -1
- data/lib/ZMediumFetcher.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aad5256e92463eb91197f407050468d928098faf55b90bf97454bbb75544fa41
|
|
4
|
+
data.tar.gz: 8e05c320fbb2dd468236e69e8c54a9d0b4a403ea10840b49c30d8b650db71b9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a32d5a034f142eece10a2ad997473d9f00223435f5d6b28671d178545f3d17f925698ca3c032a86fa7aaffff23db6fa172cf3ac2ae4efd5f8945b2c3111d85f
|
|
7
|
+
data.tar.gz: 57a66882f1447c6ddb58da6f68d74b79f3fc7f501eba7d09707ecef879ac791fd1ab80f6f0e69de754085b2f30f8f74f43bdfc4cd25d32eb273a8861516d853a
|
data/lib/CLI.rb
CHANGED
|
@@ -11,7 +11,7 @@ require 'ChromeAuth'
|
|
|
11
11
|
# All CLI-side concerns for the `ZMediumToMarkdown` executable. Pulled out
|
|
12
12
|
# of bin/ so it can be exercised by unit tests without spawning processes.
|
|
13
13
|
module CLI
|
|
14
|
-
COOKIE_SETUP_URL = 'https://github.com/ZhgChgLi/ZMediumToMarkdown/wiki/Setting-Up-Medium-Cookies-and-a-Cloudflare-Worker-Proxy'.freeze
|
|
14
|
+
COOKIE_SETUP_URL = 'https://github.com/ZhgChgLi/ZMediumToMarkdown/blob/main/wiki/Setting-Up-Medium-Cookies-and-a-Cloudflare-Worker-Proxy.md'.freeze
|
|
15
15
|
|
|
16
16
|
DEFAULT_MEDIUM_HOST = 'https://medium.com/_/graphql'.freeze
|
|
17
17
|
|
data/lib/Request.rb
CHANGED
|
@@ -48,7 +48,7 @@ class Request
|
|
|
48
48
|
the MEDIUM_HOST env var. (Recommended.)
|
|
49
49
|
|
|
50
50
|
Full step-by-step setup guide:
|
|
51
|
-
https://github.com/ZhgChgLi/ZMediumToMarkdown/wiki/Setting-Up-Medium-Cookies-and-a-Cloudflare-Worker-Proxy
|
|
51
|
+
https://github.com/ZhgChgLi/ZMediumToMarkdown/blob/main/wiki/Setting-Up-Medium-Cookies-and-a-Cloudflare-Worker-Proxy.md
|
|
52
52
|
MSG
|
|
53
53
|
end
|
|
54
54
|
end
|
data/lib/ZMediumFetcher.rb
CHANGED
|
@@ -419,7 +419,7 @@ class ZMediumFetcher
|
|
|
419
419
|
# cookies belong to a Medium Member account that has access to the post.
|
|
420
420
|
def paywallMessage
|
|
421
421
|
if !defined?($cookies) || $cookies.nil? || ($cookies['sid'].to_s.empty? && $cookies['uid'].to_s.empty?)
|
|
422
|
-
"This post is behind Medium's paywall. Cookies (sid / uid) are REQUIRED to download the full content — without them you only get the public preview. Setup guide: https://github.com/ZhgChgLi/ZMediumToMarkdown/wiki/Setting-Up-Medium-Cookies-and-a-Cloudflare-Worker-Proxy"
|
|
422
|
+
"This post is behind Medium's paywall. Cookies (sid / uid) are REQUIRED to download the full content — without them you only get the public preview. Setup guide: https://github.com/ZhgChgLi/ZMediumToMarkdown/blob/main/wiki/Setting-Up-Medium-Cookies-and-a-Cloudflare-Worker-Proxy.md"
|
|
423
423
|
else
|
|
424
424
|
"This post is behind Medium's paywall and the provided cookies don't grant access. Verify your sid / uid belong to a Medium Member account that can read this post. Cookies stay valid as long as they're being used (each successful request resets a ~2-week sliding window); they only expire after ~2 weeks of inactivity."
|
|
425
425
|
end
|