Skip to content

Commit

Permalink
fixed api key
Browse files Browse the repository at this point in the history
  • Loading branch information
MedZed committed Jan 30, 2017
1 parent 26bc679 commit 4eab17b
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 45 deletions.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

31 changes: 14 additions & 17 deletions README.md
@@ -1,21 +1,26 @@
# Electron-Youtube-to-Mp3-Converter
# electron-quick-start

![icon.png](img/ytb-icon.png)
**Clone and run for a quick way to see Electron in action.**

**Clone and run for a quick way to see Electron-Youtube-to-Mp3-Converter in action.**
This is a minimal Electron application based on the [Quick Start Guide](http://electron.atom.io/docs/tutorial/quick-start) within the Electron documentation.

**Use this app along with the [Electron API Demos](http://electron.atom.io/#get-started) app for API code examples to help you get started.**

## Screenshot
A basic Electron application needs just these files:

![screenshot.JPG](img/screenshot.JPG)
- `package.json` - Points to the app's main file and lists its details and dependencies.
- `main.js` - Starts the app and creates a browser window to render HTML. This is the app's **main process**.
- `index.html` - A web page to render. This is the app's **renderer process**.

You can learn more about each of these components within the [Quick Start Guide](http://electron.atom.io/docs/tutorial/quick-start).

## To Use

To clone and run this repository you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:

```bash
# Clone this repository
git clone https://github.com/MedZed/Electron-Youtube-to-Mp3-Converter.git
git clone https://github.com/electron/electron-quick-start
# Go into the repository
cd electron-quick-start
# Install dependencies
Expand All @@ -24,20 +29,12 @@ npm install
npm start
```

Learn more about Electron and its API in the [documentation](http://electron.atom.io/docs/latest).

## Link to final installable windows app
[Electron Youtube To MP3 Converter](https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fih85t8hj629ag5g%2FYtb-mp3.rar%3Fdl%3D0&h=KAQFlnymx&s=1)
Learn more about Electron and its API in the [documentation](http://electron.atom.io/docs/).

## Other Example Apps

For more example apps, see the
[list of boilerplates](http://electron.atom.io/apps/)
[list of boilerplates](http://electron.atom.io/community/#boilerplates)
created by the awesome electron community.

License
-------

The MIT License

Copyright (c) 2017 Med Zarroug
#### License [CC0 1.0 (Public Domain)](LICENSE.md)
1 change: 1 addition & 0 deletions api key.txt
@@ -0,0 +1 @@
2298ce13e9f02164f2fec68daab4af8f
Binary file removed img/ytb-icon.png
Binary file not shown.
Binary file added img/ytb.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/ytb.ico
Binary file not shown.
Binary file added img/ytb.png
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 index.html
Expand Up @@ -2,7 +2,7 @@
<html>

<head>
<title>Touby</title>
<title>Youtube-mp3</title>
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<link rel="stylesheet" href="style/style.css">
<script>window.$ = window.jQuery = require('jquery');</script>
Expand All @@ -15,7 +15,7 @@
var yt = id;

var results = document.getElementById("results");
$.getJSON('http://www.yt-mp3.com/fetch?v=' + id + '&apikey=1234567', function(yt_data) {
$.getJSON('http://www.yt-mp3.com/fetch?v=' + id + '&apikey=2298ce13e9f02164f2fec68daab4af8f', function(yt_data) {
if (yt_data.status == 'error') {
results.innerHTML = "<p style='top: 40vh;' id='Down' >"+yt_data.message+"</p>";
return false;
Expand Down Expand Up @@ -76,7 +76,7 @@
<!-- zoom button link -->
</div>
</div>
<input type="text" class="textfield" name="url" onpaste="var e=this; setTimeout(function(){return runScript_paste(e.value);}, 4);" value="https://youtu.be/qdsTUfDTEhQ" id="url" onkeypress="return runScript(event)">
<input type="text" class="textfield" name="url" onpaste="var e=this; setTimeout(function(){return runScript_paste(e.value);}, 4);" value="https://youtu.be/4wheopltqnw" id="url" onkeypress="return runScript(event)">
</div>

</div>
Expand Down
8 changes: 5 additions & 3 deletions installers/windows/createinstaller.js
Expand Up @@ -14,12 +14,14 @@ function getInstallerConfig () {
const outPath = path.join(rootPath, 'release-builds')

return Promise.resolve({
appDirectory: path.join(outPath, 'To-win32-ia32/'),
appDirectory: path.join(outPath, 'Youtube-mp3-win32-ia32/'),
authors: 'Med Zed INC',
noMsi: true,
outputDirectory: path.join(outPath, 'windows-installer'),
outputDirectory: path.join(outPath, 'win-installer'),
exe: 'Youtube-mp3.exe',
setupExe: 'Youtube-mp3.exe',
setupIcon: path.join(rootPath, 'img', 'ytb.ico')
setupIcon: path.join(rootPath, 'ytb.ico'),
loadingGif: path.join(rootPath, 'img', 'ytb.gif')
// remoteReleases
})
}
7 changes: 7 additions & 0 deletions pack.txt
@@ -0,0 +1,7 @@
,

"scripts": {
"package-mac": "electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/mac/icon.icns --prune=true --out=release-builds",
"package-win": "electron-packager . --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"Electron Tutorial App\"",
"package-linux" : "electron-packager . --overwrite --platform=linux --arch=x64 --icon=assets/icons/png/1024x1024.png --prune=true --out=release-builds"
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"start": "electron .",
"package-mac": "electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/mac/icon.icns --prune=true --out=release-builds",
"package-win": "electron-packager . --overwrite --asar=true --platform=win32 --arch=ia32 --icon=img/ytb.ico --prune=true --out=release-builds --version-string.CompanyName=MEDZED --version-string.FileDescription=Youtube To Mp3 Downloader --version-string.ProductName=Youtube-mp3",
"package-win": "electron-packager . --overwrite --asar=true --platform=win32 --arch=ia32 --icon=img/ytb.ico --prune=true --out=release-builds --version-string.CompanyName=MEDZED --version-string.FileDescription=Youtube-To-Mp3-Downloader --version-string.ProductName=Youtube-mp3",
"package-linux" : "electron-packager . --overwrite --platform=linux --arch=x64 --icon=assets/icons/png/1024x1024.png --prune=true --out=release-builds",
"create-installer-win": "node installers/windows/createinstaller.js"

Expand Down
Binary file added ytb.ico
Binary file not shown.

0 comments on commit 4eab17b

Please sign in to comment.