mirror of https://github.com/Meekdai/Gmeek.git
修复仓库名称大小写敏感的BUG
This commit is contained in:
parent
aaf6d1670f
commit
d7b5949340
2
Gmeek.py
2
Gmeek.py
|
|
@ -88,7 +88,7 @@ class GMEEK():
|
||||||
self.blogBase["ogImage"]=self.blogBase["avatarUrl"]
|
self.blogBase["ogImage"]=self.blogBase["avatarUrl"]
|
||||||
|
|
||||||
if "homeUrl" not in self.blogBase:
|
if "homeUrl" not in self.blogBase:
|
||||||
if str(self.repo.name) == (str(self.repo.owner.login)+".github.io"):
|
if str(self.repo.name).lower() == (str(self.repo.owner.login) + ".github.io").lower():
|
||||||
self.blogBase["homeUrl"] = f"https://{self.repo.name}"
|
self.blogBase["homeUrl"] = f"https://{self.repo.name}"
|
||||||
else:
|
else:
|
||||||
self.blogBase["homeUrl"] = f"https://{self.repo.owner.login}.github.io/{self.repo.name}"
|
self.blogBase["homeUrl"] = f"https://{self.repo.owner.login}.github.io/{self.repo.name}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue