Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
setvisible committed Nov 11, 2021
2 parents d488236 + d2c72a9 commit be6fa09
Show file tree
Hide file tree
Showing 58 changed files with 6,608 additions and 4,382 deletions.
Binary file modified 3rd/yt-dlp/bin/yt-dlp
Binary file not shown.
Binary file modified 3rd/yt-dlp/bin/yt-dlp.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion 3rd/yt-dlp/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.10.22
2021.11.10.1
Binary file added docs/assets/images/iexplorer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/category/download-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ Table of Content:

Choose the browser:

| ![logo](/DownZemAll/assets/images/firefox.png) | ![logo](/DownZemAll/assets/images/chrome.png) |
|-----------------------------------|----------------------------------|
| Click here to intall [DownRightNow for Mozilla Firefox](https://addons.mozilla.org/en-US/firefox/addon/down-right-now/ ) | Click here to intall [DownRightNow for Google Chrome](https://chrome.google.com/webstore/detail/down-right-now/modofbhnhlagjmejdbalnijgncppjeio "https://chrome.google.com/webstore/detail/down-right-now/modofbhnhlagjmejdbalnijgncppjeio") |
| ![logo](/DownZemAll/assets/images/firefox.png) | ![logo](/DownZemAll/assets/images/chrome.png) | ![logo](/DownZemAll/assets/images/iexplorer.png) |
|-----------------------------------|----------------------------------|----------------------------------|
| Click here to intall [DownRightNow for Mozilla Firefox](https://addons.mozilla.org/en-US/firefox/addon/down-right-now/ ) | Click here to intall [DownRightNow for Google Chrome](https://chrome.google.com/webstore/detail/down-right-now/modofbhnhlagjmejdbalnijgncppjeio "https://chrome.google.com/webstore/detail/down-right-now/modofbhnhlagjmejdbalnijgncppjeio") | Click here to intall... Just kidding |


#### Portable Archives
Expand Down
8 changes: 7 additions & 1 deletion docs/category/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ title: Download
</a>
</div>
<div class="general-instruction" style="display: none;">
<table>
<table style="table-layout:fixed;">
<tbody>
<tr>
<td align="center">
Expand All @@ -52,6 +52,9 @@ title: Download
<img src="/DownZemAll/assets/images/chrome.png" alt="chrome logo">
</a>
</td>
<td align="center">
<img src="/DownZemAll/assets/images/iexplorer.png" alt="internet explorer logo">
</td>
</tr>
<tr>
<td>
Expand All @@ -66,6 +69,9 @@ title: Download
<b>DownRightNow for Google Chrome</b>
</a>
</td>
<td>
Click here to intall... Just kidding
</td>
</tr>
</tbody>
</table>
Expand Down
1 change: 0 additions & 1 deletion include/Widgets/StreamConfigWidget

This file was deleted.

1 change: 1 addition & 0 deletions include/Widgets/StreamToolBox
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "../../src/widgets/streamtoolbox.h"
1 change: 1 addition & 0 deletions src/core/format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ QString Format::boolToHtml(bool value)

QString Format::sizeToHtml(int size)
{
/// \todo Add non breaking space?
return Format::fileSizeToString(size);
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/resourceitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@ void ResourceItem::setStreamFileSize(qint64 streamFileSize)

/******************************************************************************
******************************************************************************/
StreamObjectConfig ResourceItem::streamConfig() const
StreamObject::Config ResourceItem::streamConfig() const
{
return m_streamConfig;
}

void ResourceItem::setStreamConfig(const StreamObjectConfig &config)
void ResourceItem::setStreamConfig(const StreamObject::Config &config)
{
m_streamConfig = config;
}
Expand Down
6 changes: 3 additions & 3 deletions src/core/resourceitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class ResourceItem
qint64 streamFileSize() const;
void setStreamFileSize(qint64 streamFileSize);

StreamObjectConfig streamConfig() const;
void setStreamConfig(const StreamObjectConfig &config);
StreamObject::Config streamConfig() const;
void setStreamConfig(const StreamObject::Config &config);

QString torrentPreferredFilePriorities() const;
void setTorrentPreferredFilePriorities(const QString &priorities);
Expand All @@ -104,7 +104,7 @@ class ResourceItem
QString m_streamFormatId;
qint64 m_streamFileSize{0};

StreamObjectConfig m_streamConfig;
StreamObject::Config m_streamConfig;

/* Torrent-specific properties */
QString m_torrentPreferredFilePriorities;
Expand Down
37 changes: 27 additions & 10 deletions src/core/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,31 +50,39 @@ static inline int stateToInt(IDownloadItem::State state)
}
}

static inline StreamObjectConfig readStreamConfig(const QJsonObject &json)
static inline StreamObject::Config readStreamConfig(const QJsonObject &json)
{
StreamObjectConfig config;
StreamObject::Config config;
{
auto j = json["overview"].toObject();
config.overview.skipVideo = j["skipVideo"].isBool();
config.overview.skipVideo = j["skipVideo"].toBool();
config.overview.markWatched = j["markWatched"].toBool();
}
{
auto j = json["subtitle"].toObject();
config.subtitle.writeSubtitle = j["writeSubtitle"].toBool();
config.subtitle.isAutoGenerated = j["isAutoGenerated"].toBool();
config.subtitle.extensions = j["extensions"].toString();
config.subtitle.languages = j["languages"].toString();
config.subtitle.convert = j["convert"].toString();
}
{
auto j = json["chapter"].toObject();
config.chapter.writeChapters = j["writeChapters"].isBool();
config.chapter.writeChapters = j["writeChapters"].toBool();
}
{
auto j = json["thumbnail"].toObject();
config.thumbnail.writeDefaultThumbnail = j["writeDefaultThumbnail"].isBool();
config.thumbnail.writeDefaultThumbnail = j["writeDefaultThumbnail"].toBool();
}
{
auto j = json["comment"].toObject();
config.comment.writeComment = j["writeComment"].isBool();
config.comment.writeComment = j["writeComment"].toBool();
}
{
auto j = json["metadata"].toObject();
config.metadata.writeDescription = j["writeDescription"].isBool();
config.metadata.writeMetadata = j["writeMetadata"].isBool();
config.metadata.writeInternetShortcut = j["writeInternetShortcut"].isBool();
config.metadata.writeDescription = j["writeDescription"].toBool();
config.metadata.writeMetadata = j["writeMetadata"].toBool();
config.metadata.writeInternetShortcut = j["writeInternetShortcut"].toBool();
}
{
auto j = json["processing"].toObject();
Expand All @@ -85,7 +93,7 @@ static inline StreamObjectConfig readStreamConfig(const QJsonObject &json)
return config;
}

static inline QJsonObject writeStreamConfig(const StreamObjectConfig &config)
static inline QJsonObject writeStreamConfig(const StreamObject::Config &config)
{
QJsonObject json;
{
Expand All @@ -94,6 +102,15 @@ static inline QJsonObject writeStreamConfig(const StreamObjectConfig &config)
j["markWatched"] = config.overview.markWatched;
json["overview"] = j;
}
{
QJsonObject j;
j["writeSubtitle"] = config.subtitle.writeSubtitle;
j["isAutoGenerated"] = config.subtitle.isAutoGenerated;
j["extensions"] = config.subtitle.extensions;
j["languages"] = config.subtitle.languages;
j["convert"] = config.subtitle.convert;
json["subtitle"] = j;
}
{
QJsonObject j;
j["writeChapters"] = config.chapter.writeChapters;
Expand Down
Loading

0 comments on commit be6fa09

Please sign in to comment.