Skip to content

Commit

Permalink
3.4
Browse files Browse the repository at this point in the history
支持批量添加emby头像
  • Loading branch information
moyy996 committed Feb 7, 2020
1 parent 8fe390a commit 4d83f0e
Show file tree
Hide file tree
Showing 6 changed files with 337 additions and 6 deletions.
4 changes: 4 additions & 0 deletions ADC_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def save_config(json_config):
print("", file=code)
print("[debug_mode]", file=code)
print("switch = " + str(json_config['switch_debug']), file=code)
print("", file=code)
print("[emby]", file=code)
print("emby_url = " + json_config['emby_url'], file=code)
print("api_key = " + json_config['api_key'], file=code)
code.close()


Expand Down
45 changes: 44 additions & 1 deletion AVDC.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def setupUi(self, AVDV):
self.lineEdit_escape_dir_move.setGeometry(QtCore.QRect(310, 30, 431, 24))
self.lineEdit_escape_dir_move.setObjectName("lineEdit_escape_dir_move")
self.groupBox_7 = QtWidgets.QGroupBox(self.page_tool)
self.groupBox_7.setGeometry(QtCore.QRect(10, 140, 751, 121))
self.groupBox_7.setGeometry(QtCore.QRect(10, 140, 751, 111))
self.groupBox_7.setObjectName("groupBox_7")
self.label = QtWidgets.QLabel(self.groupBox_7)
self.label.setGeometry(QtCore.QRect(230, 60, 511, 41))
Expand All @@ -74,6 +74,37 @@ def setupUi(self, AVDV):
self.label_2 = QtWidgets.QLabel(self.groupBox_7)
self.label_2.setGeometry(QtCore.QRect(230, 30, 72, 21))
self.label_2.setObjectName("label_2")
self.groupBox_12 = QtWidgets.QGroupBox(self.page_tool)
self.groupBox_12.setGeometry(QtCore.QRect(10, 270, 751, 191))
self.groupBox_12.setObjectName("groupBox_12")
self.pushButton_add_actor_pic = QtWidgets.QPushButton(self.groupBox_12)
self.pushButton_add_actor_pic.setGeometry(QtCore.QRect(10, 30, 201, 71))
self.pushButton_add_actor_pic.setObjectName("pushButton_add_actor_pic")
self.lineEdit_emby_url = QtWidgets.QLineEdit(self.groupBox_12)
self.lineEdit_emby_url.setGeometry(QtCore.QRect(310, 30, 431, 21))
self.lineEdit_emby_url.setObjectName("lineEdit_emby_url")
self.label_3 = QtWidgets.QLabel(self.groupBox_12)
self.label_3.setGeometry(QtCore.QRect(230, 30, 72, 15))
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(self.groupBox_12)
self.label_4.setGeometry(QtCore.QRect(230, 74, 72, 21))
self.label_4.setObjectName("label_4")
self.lineEdit_api_key = QtWidgets.QLineEdit(self.groupBox_12)
self.lineEdit_api_key.setGeometry(QtCore.QRect(310, 70, 431, 21))
self.lineEdit_api_key.setObjectName("lineEdit_api_key")
self.label_5 = QtWidgets.QLabel(self.groupBox_12)
self.label_5.setGeometry(QtCore.QRect(230, 110, 511, 71))
self.label_5.setObjectName("label_5")
self.pushButton_show_pic_actor = QtWidgets.QPushButton(self.groupBox_12)
self.pushButton_show_pic_actor.setGeometry(QtCore.QRect(10, 140, 201, 31))
self.pushButton_show_pic_actor.setObjectName("pushButton_show_pic_actor")
self.comboBox_pic_actor = QtWidgets.QComboBox(self.groupBox_12)
self.comboBox_pic_actor.setGeometry(QtCore.QRect(10, 110, 201, 21))
self.comboBox_pic_actor.setObjectName("comboBox_pic_actor")
self.comboBox_pic_actor.addItem("")
self.comboBox_pic_actor.addItem("")
self.comboBox_pic_actor.addItem("")
self.comboBox_pic_actor.addItem("")
self.stackedWidget.addWidget(self.page_tool)
self.page_setting = QtWidgets.QWidget()
self.page_setting.setObjectName("page_setting")
Expand Down Expand Up @@ -303,6 +334,18 @@ def retranslateUi(self, AVDV):
self.comboBox_website.setItemText(5, _translate("AVDV", "fanza"))
self.comboBox_website.setItemText(6, _translate("AVDV", "siro"))
self.label_2.setText(_translate("AVDV", "刮削网站:"))
self.groupBox_12.setTitle(_translate("AVDV", "Emby-女优头像"))
self.pushButton_add_actor_pic.setText(_translate("AVDV", "添加头像"))
self.label_3.setText(_translate("AVDV", "Emby地址:"))
self.label_4.setText(_translate("AVDV", "API密钥:"))
self.label_5.setText(_translate("AVDV", "说明:\n"
" 1、头像请放在程序目录下的Actor目录中。\n"
" 2、密钥创建方法:Emby控制台->高级->API密钥->添加(APP名称任意)。"))
self.pushButton_show_pic_actor.setText(_translate("AVDV", "查看"))
self.comboBox_pic_actor.setItemText(0, _translate("AVDV", "可添加头像的女优"))
self.comboBox_pic_actor.setItemText(1, _translate("AVDV", "没有头像的女优"))
self.comboBox_pic_actor.setItemText(2, _translate("AVDV", "已有头像的女优"))
self.comboBox_pic_actor.setItemText(3, _translate("AVDV", "所有女优"))
self.pushButton_save_config.setText(_translate("AVDV", "保存"))
self.groupBox_8.setTitle(_translate("AVDV", "命名规则"))
self.label_43.setText(_translate("AVDV", " 目录命名: "))
Expand Down
132 changes: 131 additions & 1 deletion AVDC.ui
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ p, li { white-space: pre-wrap; }
<x>10</x>
<y>140</y>
<width>751</width>
<height>121</height>
<height>111</height>
</rect>
</property>
<property name="title">
Expand Down Expand Up @@ -241,6 +241,136 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_12">
<property name="geometry">
<rect>
<x>10</x>
<y>270</y>
<width>751</width>
<height>191</height>
</rect>
</property>
<property name="title">
<string>Emby-女优头像</string>
</property>
<widget class="QPushButton" name="pushButton_add_actor_pic">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>201</width>
<height>71</height>
</rect>
</property>
<property name="text">
<string>添加头像</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_emby_url">
<property name="geometry">
<rect>
<x>310</x>
<y>30</y>
<width>431</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>230</x>
<y>30</y>
<width>72</width>
<height>15</height>
</rect>
</property>
<property name="text">
<string>Emby地址:</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>230</x>
<y>74</y>
<width>72</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>API密钥:</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_api_key">
<property name="geometry">
<rect>
<x>310</x>
<y>70</y>
<width>431</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>230</x>
<y>110</y>
<width>511</width>
<height>71</height>
</rect>
</property>
<property name="text">
<string>说明:
1、头像请放在程序目录下的Actor目录中。
2、密钥创建方法:Emby控制台-&gt;高级-&gt;API密钥-&gt;添加(APP名称任意)。</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_show_pic_actor">
<property name="geometry">
<rect>
<x>10</x>
<y>140</y>
<width>201</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>查看</string>
</property>
</widget>
<widget class="QComboBox" name="comboBox_pic_actor">
<property name="geometry">
<rect>
<x>10</x>
<y>110</y>
<width>201</width>
<height>21</height>
</rect>
</property>
<item>
<property name="text">
<string>可添加头像的女优</string>
</property>
</item>
<item>
<property name="text">
<string>没有头像的女优</string>
</property>
</item>
<item>
<property name="text">
<string>已有头像的女优</string>
</property>
</item>
<item>
<property name="text">
<string>所有女优</string>
</property>
</item>
</widget>
</widget>
</widget>
<widget class="QWidget" name="page_setting">
<widget class="QPushButton" name="pushButton_save_config">
Expand Down
Loading

0 comments on commit 4d83f0e

Please sign in to comment.