hudebnibazar
This commit is contained in:
parent
fcec64a9bf
commit
8612d6d368
5 changed files with 140 additions and 132 deletions
|
@ -54,8 +54,13 @@ def processListingDate(string_date: str):
|
||||||
|
|
||||||
|
|
||||||
def processListingImgs(listing: bs4.Tag):
|
def processListingImgs(listing: bs4.Tag):
|
||||||
|
pics_elems = listing.find("div", class_="InzeratObr")
|
||||||
pics = list()
|
pics = list()
|
||||||
for pic in listing.find("div", class_="InzeratObr").find_all("a"):
|
|
||||||
|
if pics_elems is None:
|
||||||
|
return pics
|
||||||
|
|
||||||
|
for pic in pics_elems.find_all("a"):
|
||||||
pics.append(url_base + pic.get("href"))
|
pics.append(url_base + pic.get("href"))
|
||||||
|
|
||||||
return pics
|
return pics
|
||||||
|
|
|
@ -62,7 +62,7 @@ LibMpvBackend::LibMpvBackend(Application* app, QWidget* parent)
|
||||||
mpv_set_option_string(m_mpvHandle, "no-resume-playback", "yes");
|
mpv_set_option_string(m_mpvHandle, "no-resume-playback", "yes");
|
||||||
|
|
||||||
#if !defined(NDEBUG)
|
#if !defined(NDEBUG)
|
||||||
mpv_set_option_string(m_mpvHandle, "terminal", "yes");
|
// mpv_set_option_string(m_mpvHandle, "terminal", "yes");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!m_customConfigFolder.isEmpty()) {
|
if (!m_customConfigFolder.isEmpty()) {
|
||||||
|
|
|
@ -233,6 +233,12 @@ void MediaPlayer::switchFullScreen(bool send_event_to_backend) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MediaPlayer::hideControls() {
|
||||||
|
// m_ui.m_
|
||||||
|
}
|
||||||
|
|
||||||
|
void MediaPlayer::showControls() {}
|
||||||
|
|
||||||
void MediaPlayer::onFullscreenChanged(bool fullscreen) {
|
void MediaPlayer::onFullscreenChanged(bool fullscreen) {
|
||||||
if (isFullScreen() != fullscreen) {
|
if (isFullScreen() != fullscreen) {
|
||||||
// Fullscreen was changed via OSC directly from backend.
|
// Fullscreen was changed via OSC directly from backend.
|
||||||
|
|
|
@ -42,6 +42,9 @@ class MediaPlayer : public TabContent {
|
||||||
void escapeFromFullscreen();
|
void escapeFromFullscreen();
|
||||||
void switchFullScreen(bool send_event_to_backend);
|
void switchFullScreen(bool send_event_to_backend);
|
||||||
|
|
||||||
|
void hideControls();
|
||||||
|
void showControls();
|
||||||
|
|
||||||
void onFullscreenChanged(bool fullscreen);
|
void onFullscreenChanged(bool fullscreen);
|
||||||
void onMutedChanged(bool muted);
|
void onMutedChanged(bool muted);
|
||||||
void onSpeedChanged(int speed);
|
void onSpeedChanged(int speed);
|
||||||
|
|
|
@ -42,18 +42,19 @@
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
|
<widget class="QWidget" name="m_controlPanel" native="true">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>9</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>0</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="rightMargin">
|
<property name="rightMargin">
|
||||||
<number>9</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>9</number>
|
<number>4</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="LabelWithStatus" name="m_lblStatus" native="true"/>
|
<widget class="LabelWithStatus" name="m_lblStatus" native="true"/>
|
||||||
|
@ -164,6 +165,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -183,14 +185,6 @@
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<tabstops>
|
|
||||||
<tabstop>m_btnPlayPause</tabstop>
|
|
||||||
<tabstop>m_btnStop</tabstop>
|
|
||||||
<tabstop>m_spinSpeed</tabstop>
|
|
||||||
<tabstop>m_slidProgress</tabstop>
|
|
||||||
<tabstop>m_btnVolume</tabstop>
|
|
||||||
<tabstop>m_slidVolume</tabstop>
|
|
||||||
</tabstops>
|
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
Loading…
Add table
Reference in a new issue