Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
Former-commit-id: 0774c5bb78b848a8a3a52eabfb9c86f6e8e8378c [formerly cbab4ca]
Former-commit-id: 745a3b0d7f95684a724e267ddf366f6986a21dad
  • Loading branch information
ingbyr committed Jan 22, 2018
2 parents 52740e0 + 1d0ab6c commit fe779c4
Show file tree
Hide file tree
Showing 47 changed files with 355 additions and 414 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Please make sure these boxes are checked before submitting your issue – thank
- [ ] You can actually watch the video in your browser, but not download them with `GUI-YouGet`.
- [ ] Your `GUI-YouGet` is up-to-date.
- [ ] Your downloading core is up-to-date.
Please paste the full `log/debug.log` inside the fences:
Please paste the full `app/log/debug.log` inside the fences:

```
[PASTE IN ME]
Expand All @@ -18,7 +18,7 @@ If there's anything else you would like to say(e.g some new features) fill in th
- [ ] 您的`GUI-YouGet`为最新版。
- [ ] 您的下载引擎为最新版。

请将`log/debug.log`文件内容粘贴在下面:
请将`app/log/debug.log`文件内容粘贴在下面:

```
[在这里粘贴完整日志]
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
.idea/
build/
out/
app.properties
/app.properties
conf/
gradle/
gradlew
gradlew.bat
log/
/engine/
GUI-YouGet.iml
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# GUI-YouGet
![](https://img.shields.io/badge/v0.2.1-pass-green.svg)
![](https://img.shields.io/badge/v0.2.2-pass-green.svg)
![](https://img.shields.io/github/forks/ingbyr/GUI-YouGet.svg)
![](https://img.shields.io/github/stars/ingbyr/GUI-YouGet.svg)
![](https://img.shields.io/badge/license-MIT-blue.svg)
Expand All @@ -8,18 +8,16 @@
> [中文说明](http://www.ingbyr.com/2016/06/18/youget-zh/)
# Download
> **NOTICE:** Before you run the GUI-YouGet, you need to install [jre8 ](http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html)(recommended) or [jdk8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) first.
[Download Page](https://github.com/ingbyr/GUI-YouGet/releases)

[GUI-YouGet Download Page](https://github.com/ingbyr/GUI-YouGet/releases)

# Screenshot
![](screenshot/main.png)
![](screenshot/medias.png)
![](screenshot/download.png)
# Screenshots
![](screenshots/main.png)
![](screenshots/medias.png)
![](screenshots/download.png)

# Feedback bugs
If something is broken and `GUI-YouGet` can't get you things you want, don't panic. (Yes, this happens all the time!)
Open a new issue on [GitHub](https://github.com/ingbyr/GUI-YouGet/issues), with detailed `/log/debug.log` output attached.
Open a new issue on [GitHub](https://github.com/ingbyr/GUI-YouGet/issues), with detailed `app/log/debug.log` output attached.

# Legal Issues

Expand Down
5 changes: 0 additions & 5 deletions RemoteConf.json

This file was deleted.

51 changes: 31 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,47 +1,58 @@
group 'com.ingbyr.guiyouget'
version '0.2.1'
group "com.ingbyr.guiyouget"
version "0.2.2"

buildscript {
ext.kotlin_version = '1.1.60'
ext.kotlin_version = "1.2.20"

repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath group: "de.dynamicfiles.projects.gradle.plugins", name: "javafx-gradle-plugin", version: "8.8.2"
}
}

apply plugin: 'kotlin'

jar {
manifest {
attributes('Main-Class': 'com.ingbyr.guiyouget.MainKt')
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}

apply plugin: "kotlin"
apply plugin: "javafx-gradle-plugin"

sourceCompatibility = 1.8


repositories {
mavenCentral()
jcenter()
mavenCentral()
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile 'no.tornado:tornadofx:1.7.10'
compile 'com.jfoenix:jfoenix:1.4.0'
compile 'com.beust:klaxon:0.30'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
compile 'com.squareup.okhttp3:okhttp:3.9.0'
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "no.tornado:tornadofx:1.7.14"
compile "com.jfoenix:jfoenix:1.11.1"
compile "com.beust:klaxon:0.30"
compile group: "ch.qos.logback", name: "logback-classic", version: "1.2.3"
compile "com.github.kittinunf.fuel:fuel:1.12.0"
}

compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}

compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}

jfx {
verbose = false
mainClass = "com.ingbyr.guiyouget.MainKt"
jfxMainAppJarName="GUI-YouGet.jar"
vendor = "ingbyr"
appName = "GUI-YouGet"
additionalAppResources = "src/main/deploy"
skipMainClassScanning = true
jvmProperties = ["-Dfile.encoding": "UTF-8"]
nativeReleaseVersion = "0.2.2"
bundler = 'exe'
needShortcut = true
bundleArguments = [
installdirChooser: 'true'
]
}
1 change: 0 additions & 1 deletion core/you-get.exe.REMOVED.git-id

This file was deleted.

1 change: 0 additions & 1 deletion core/youtube-dl.exe.REMOVED.git-id

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
8 changes: 8 additions & 0 deletions src/main/deploy/app.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version=0.2.2
you-get-version=0.4.985
youtube-dl-version=2018.01.18
proxy-port=
proxy-type=
proxy-address=
storage-path=
download-core=youtube-dl
1 change: 1 addition & 0 deletions src/main/deploy/engine/you-get.exe.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
29ec6541f4f140bea844df64d7c5b87a28a66400
1 change: 1 addition & 0 deletions src/main/deploy/engine/youtube-dl.exe.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9ae2ad2118e26dd1df2aab680f5ed6b7ebf6c1e7
Binary file not shown.
Binary file added src/main/deploy/package/windows/GUI-YouGet.ico
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.ingbyr.guiyouget.controllers

import com.ingbyr.guiyouget.core.YouGet
import com.ingbyr.guiyouget.core.YoutubeDL
import com.ingbyr.guiyouget.engine.YouGet
import com.ingbyr.guiyouget.engine.YoutubeDL
import com.ingbyr.guiyouget.events.RequestMediasWithYouGet
import com.ingbyr.guiyouget.events.RequestMediasWithYoutubeDL
import com.ingbyr.guiyouget.utils.CoreUtils
import com.ingbyr.guiyouget.utils.ContentsUtil
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import tornadofx.*
Expand All @@ -14,28 +14,28 @@ class MainController : Controller() {
private val logger: Logger = LoggerFactory.getLogger(MainController::class.java)

fun requestMediaInfo(url: String) {
val core = app.config[CoreUtils.DOWNLOAD_CORE]
logger.debug("download core is $core")
val core = app.config[ContentsUtil.DOWNLOAD_CORE]
logger.debug("download engine is $core")

// Init the request args
when (core) {
CoreUtils.YOUTUBE_DL -> {
ContentsUtil.YOUTUBE_DL -> {
fire(RequestMediasWithYoutubeDL(YoutubeDL(url)))
}

CoreUtils.YOU_GET -> {
ContentsUtil.YOU_GET -> {
fire(RequestMediasWithYouGet(YouGet(url)))
}

else -> {
logger.error("bad downloading core $core")
logger.error("bad downloading engine $core")
}
}

}


fun updateGUI() {
hostServices.showDocument(CoreUtils.APP_UPDATE_URL)
hostServices.showDocument(ContentsUtil.APP_UPDATE_URL)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ class MediaListController : Controller() {
} catch (e: Exception) {
logger.error(e.toString())
fire(DisplayMediasWithYoutubeDL(JsonObject(mapOf(
"title" to messages["getInfoFailed"],
"description" to messages["getInfoFailedDes"]))))
"title" to messages["failed"]))))
}
}

Expand All @@ -42,7 +41,7 @@ class MediaListController : Controller() {
fire(DisplayMediasWithYouGet(json))
} catch (e: Exception) {
logger.error(e.toString())
fire(DisplayMediasWithYouGet(JsonObject(mapOf("title" to messages["getInfoFailed"]))))
fire(DisplayMediasWithYouGet(JsonObject(mapOf("title" to messages["failed"]))))
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ingbyr.guiyouget.controllers

import com.ingbyr.guiyouget.core.YouGet
import com.ingbyr.guiyouget.core.YoutubeDL
import com.ingbyr.guiyouget.engine.YouGet
import com.ingbyr.guiyouget.engine.YoutubeDL
import com.ingbyr.guiyouget.events.DownloadingRequestWithYouGet
import com.ingbyr.guiyouget.events.DownloadingRequestWithYoutubeDL
import com.ingbyr.guiyouget.events.ResumeDownloading
Expand Down

0 comments on commit fe779c4

Please sign in to comment.