logicdn 1.0.578 → 1.0.581

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.
@@ -3,6 +3,7 @@ import io
3
3
  import sys
4
4
  import time
5
5
  import json
6
+ import base64
6
7
  import shutil
7
8
  import random
8
9
  import subprocess
@@ -104,7 +105,11 @@ class FriendLinkDoctor:
104
105
  def save_image(friend):
105
106
  requests.packages.urllib3.disable_warnings()
106
107
  link = friend['link']
107
- identity = urlsplit(link).netloc
108
+ split_link = urlsplit(link)
109
+ identity = split_link.netloc
110
+ if split_link.path:
111
+ identity += "-" + \
112
+ base64.b64encode(split_link.path.encode('utf8')).decode('utf8').lower()
108
113
 
109
114
  def save():
110
115
  resp = FriendLinkDoctor.get(friend['avatar'], verify=False)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logicdn",
3
- "version": "1.0.578",
3
+ "version": "1.0.581",
4
4
  "description": "Static CDN for Personal Use",
5
5
  "main": "index.mjs",
6
6
  "repository": {