-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,986 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
============================== | ||
Quick-and-Dirty GUI for mid3v2 | ||
============================== | ||
|
||
A quick-and-dirty UI for mid3v2 to add and/or edit ID3-MP3-Tags of a whole talking book or a complete music collection at once. There are many, many, really many things to do, but this toolbox is usable already. | ||
|
||
------------------------ | ||
The used environment is: | ||
------------------------ | ||
+ KUbuntu 16 | ||
+ Konsole | ||
+ Firefox | ||
+ bash | ||
|
||
+ PHP 7.2.33 (CLI) | ||
+ Python 3.5.2 | ||
+ Python-Mutagen 1.31 | ||
+ mid3v2 and mid3cp (part of Mutagen) | ||
|
||
Some are prerequisites (like PHP, Python and Mutagen), others are interchangeable. For example, if you use Chromium instead of Firefox you must edit the shell scripts or do the steps manually. | ||
|
||
To start just click on a shell script (localhost8888-xxxx.sh). | ||
|
||
|
||
License: | ||
|
||
Copyright (C) 2020 Juergen Smolka - https://smolka.lima-city.de/ | ||
|
||
This program/collection is free software: you can redistribute it | ||
and/or modify it under the terms of the GNU General Public License | ||
as published by the Free Software Foundation, either version 3 of | ||
the License, or (at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python | ||
import ToDo | ||
|
||
def ToDo(): | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
/* DHTML-Bibliothek (based on SelfHTML) */ | ||
|
||
var DHTML = false, DOM = false, MSIE4 = false, NS4 = false, OP = false; | ||
|
||
if (document.getElementById) { | ||
DHTML = true; | ||
DOM = true; | ||
} else { | ||
if (document.all) { | ||
DHTML = true; | ||
MSIE4 = true; | ||
} else { | ||
if (document.layers) { | ||
DHTML = true; | ||
NS4 = true; | ||
} | ||
} | ||
} | ||
if (window.opera) { | ||
OP = true; | ||
} | ||
|
||
function getElement (Mode, Identifier, ElementNumber) { | ||
var Element, ElementList; | ||
if (DOM) { | ||
if (Mode.toLowerCase() == "id") { | ||
Element = document.getElementById(Identifier); | ||
if (!Element) { | ||
Element = false; | ||
} | ||
return Element; | ||
} | ||
if (Mode.toLowerCase() == "name") { | ||
ElementList = document.getElementsByName(Identifier); | ||
Element = ElementList[ElementNumber]; | ||
if (!Element) { | ||
Element = false; | ||
} | ||
return Element; | ||
} | ||
if (Mode.toLowerCase() == "tagname") { | ||
ElementList = document.getElementsByTagName(Identifier); | ||
Element = ElementList[ElementNumber]; | ||
if (!Element) { | ||
Element = false; | ||
} | ||
return Element; | ||
} | ||
return false; | ||
} | ||
if (MSIE4) { | ||
if (Mode.toLowerCase() == "id" || Mode.toLowerCase() == "name") { | ||
Element = document.all(Identifier); | ||
if (!Element) { | ||
Element = false; | ||
} | ||
return Element; | ||
} | ||
if (Mode.toLowerCase() == "tagname") { | ||
ElementList = document.all.tags(Identifier); | ||
Element = ElementList[ElementNumber]; | ||
if (!Element) { | ||
Element = false; | ||
} | ||
return Element; | ||
} | ||
return false; | ||
} | ||
if (NS4) { | ||
if (Mode.toLowerCase() == "id" || Mode.toLowerCase() == "name") { | ||
Element = document[Identifier]; | ||
if (!Element) { | ||
Element = document.anchors[Identifier]; | ||
} | ||
if (!Element) { | ||
Element = false; | ||
} | ||
return Element; | ||
} | ||
if (Mode.toLowerCase() == "layerindex") { | ||
Element = document.layers[Identifier]; | ||
if (!Element) { | ||
Element = false; | ||
} | ||
return Element; | ||
} | ||
return false; | ||
} | ||
return false; | ||
} | ||
|
||
function getAttribute (Mode, Identifier, ElementNumber, AttributeName) { | ||
var Attribute; | ||
var Element = getElement(Mode, Identifier, ElementNumber); | ||
if (!Element) { | ||
return false; | ||
} | ||
if (DOM || MSIE4) { | ||
Attribute = Element.getAttribute(AttributeName); | ||
return Attribute; | ||
} | ||
if (NS4) { | ||
Attribute = Element[AttributeName] | ||
if (!Attribute) { | ||
Attribute = false; | ||
} | ||
return Attribute; | ||
} | ||
return false; | ||
} | ||
|
||
function getContent (Mode, Identifier, ElementNumber) { | ||
var Content; | ||
var Element = getElement(Mode, Identifier, ElementNumber); | ||
if (!Element) { | ||
return false; | ||
} | ||
if (DOM && Element.firstChild) { | ||
if (Element.firstChild.nodeType == 3) { | ||
Content = Element.firstChild.nodeValue; | ||
} else { | ||
Content = ""; | ||
} | ||
return Content; | ||
} | ||
if (MSIE4) { | ||
Content = Element.innerText; | ||
return Content; | ||
} | ||
return false; | ||
} | ||
|
||
function getCheck (Mode, Identifier, ElementNumber) { | ||
var Check; | ||
var Element = getElement(Mode, Identifier, ElementNumber); | ||
if (!Element) { | ||
return false; | ||
} | ||
if (DOM) { | ||
Check = Element.checked; | ||
return Check; | ||
} | ||
if (MSIE4) { | ||
Check = Element.checked; | ||
return Check; | ||
} | ||
return false; | ||
} | ||
|
||
function setCheck (Mode, Identifier, ElementNumber) { | ||
var Element = getElement(Mode, Identifier, ElementNumber); | ||
if (!Element) { | ||
return false; | ||
} | ||
if (DOM) { | ||
Element.checked = true; | ||
return true; | ||
} | ||
if (MSIE4) { | ||
Element.checked = true; | ||
return true; | ||
} | ||
if (NS4) { | ||
Element.document.open(); | ||
Element.document.write(true); | ||
Element.document.close(); | ||
return true; | ||
} | ||
} | ||
|
||
function clearCheck (Mode, Identifier, ElementNumber) { | ||
var Element = getElement(Mode, Identifier, ElementNumber); | ||
if (!Element) { | ||
return false; | ||
} | ||
if (DOM) { | ||
Element.checked = false; | ||
return true; | ||
} | ||
if (MSIE4) { | ||
Element.checked = false; | ||
return true; | ||
} | ||
if (NS4) { | ||
Element.document.open(); | ||
Element.document.write(false); | ||
Element.document.close(); | ||
return true; | ||
} | ||
} | ||
|
||
function setContent (Mode, Identifier, ElementNumber, Text) { | ||
var Element = getElement(Mode, Identifier, ElementNumber); | ||
if (!Element) { | ||
return false; | ||
} | ||
if (DOM && Element.firstChild) { | ||
Element.firstChild.nodeValue = Text; | ||
return true; | ||
} | ||
if (MSIE4) { | ||
Element.innerText = Text; | ||
return true; | ||
} | ||
if (NS4) { | ||
Element.document.open(); | ||
Element.document.write(Text); | ||
Element.document.close(); | ||
return true; | ||
} | ||
} | ||
|
||
function setAttribute (Mode, Identifier, ElementNumber, AttributeName, AttributeWert) { | ||
var Element = getElement(Mode, Identifier, ElementNumber); | ||
if (!Element) { | ||
return false; | ||
} | ||
if (DOM || MSIE4) { | ||
Element.setAttribute(AttributeName, AttributeWert); | ||
return true; | ||
} | ||
// if (NS4) { | ||
// Attribute = Element[AttributeName] | ||
// if (!Attribute) { | ||
// Attribute = false; | ||
// } | ||
// return true; | ||
// } | ||
return false; | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
konsole --nofork -e php -S localhost:8888 & | ||
firefox http://localhost:8888/mid3TagMp3AudioBook.php | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
konsole --nofork -e php -S localhost:8888 & | ||
firefox http://localhost:8888/mid3TagMp3AudioBookP1.php | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
konsole --nofork -e php -S localhost:8888 & | ||
firefox http://localhost:8888/mid3TagMp3AudioBookP1L.php | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
konsole --nofork -e php -S localhost:8888 & | ||
firefox http://localhost:8888/mid3TagMp3Music.php | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
konsole --nofork -e php -S localhost:8888 & | ||
firefox http://localhost:8888/mid3TagMp3Transfer.php | ||
exit 0 |
Oops, something went wrong.