Skip to content

Commit

Permalink
fix profile selection
Browse files Browse the repository at this point in the history
  • Loading branch information
tastysugar committed Mar 14, 2023
1 parent c237fd9 commit 59687c0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions OKPLogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ def publishRun(self):
proxy = self.conf["proxy"]

cookies = self.profile['profiles'][self.menuSelectCookies.currentText()]['cookies']
profile = self.profile['profiles'][self.menuSelectCookies.currentText()]

if self.checkboxDmhyPublish.isChecked():
if not re.search(r"https:\/\/share\.dmhy\.org", cookies):
Expand All @@ -652,7 +653,7 @@ def publishRun(self):
intro_templates.append(
{
'site': 'dmhy',
'name': self.textDmhyName.text(),
'name': profile['dmhyName'],
'content': html,
}
)
Expand All @@ -666,7 +667,7 @@ def publishRun(self):
intro_templates.append(
{
'site': 'nyaa',
'name': self.textNyaaName.text(),
'name': profile['nyaaName'],
'content': md,
}
)
Expand All @@ -680,7 +681,7 @@ def publishRun(self):
intro_templates.append(
{
'site': 'acgrip',
'name': self.textAcgripName.text(),
'name': profile['acgripName'],
'content': bbcode,
}
)
Expand All @@ -694,7 +695,7 @@ def publishRun(self):
intro_templates.append(
{
'site': 'bangumi',
'name': self.textBangumiName.text(),
'name': profile['bangumiName'],
'content': html,
}
)
Expand All @@ -708,7 +709,7 @@ def publishRun(self):
intro_templates.append(
{
'site': 'acgnx_asia',
'name': self.textAcgnxasiaName.text(),
'name': profile['acgnxasiaName'],
'content': html,
}
)
Expand All @@ -722,7 +723,7 @@ def publishRun(self):
intro_templates.append(
{
'site': 'acgnx_global',
'name': self.textAcgnxglobalName.text(),
'name': profile['acgnxglobalName'],
'content': html,
}
)
Expand Down

0 comments on commit 59687c0

Please sign in to comment.