Skip to content

Commit fdd1a68

Browse files
authored
Add files via upload
1 parent 3a0fc07 commit fdd1a68

21 files changed

Lines changed: 1986 additions & 0 deletions

_info-readme.txt

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
==============================
2+
Quick-and-Dirty GUI for mid3v2
3+
==============================
4+
5+
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.
6+
7+
------------------------
8+
The used environment is:
9+
------------------------
10+
+ KUbuntu 16
11+
+ Konsole
12+
+ Firefox
13+
+ bash
14+
15+
+ PHP 7.2.33 (CLI)
16+
+ Python 3.5.2
17+
+ Python-Mutagen 1.31
18+
+ mid3v2 and mid3cp (part of Mutagen)
19+
20+
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.
21+
22+
To start just click on a shell script (localhost8888-xxxx.sh).
23+
24+
25+
License:
26+
27+
Copyright (C) 2020 Juergen Smolka - https://smolka.lima-city.de/
28+
29+
This program/collection is free software: you can redistribute it
30+
and/or modify it under the terms of the GNU General Public License
31+
as published by the Free Software Foundation, either version 3 of
32+
the License, or (at your option) any later version.
33+
34+
This program is distributed in the hope that it will be useful,
35+
but WITHOUT ANY WARRANTY; without even the implied warranty of
36+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37+
GNU General Public License for more details.
38+
39+
You should have received a copy of the GNU General Public License
40+
along with this program. If not, see <http://www.gnu.org/licenses/>.
41+

apiclink.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python
2+
import ToDo
3+
4+
def ToDo():
5+
6+
if __name__ == '__main__':
7+
main()

dhtml.js

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
/* DHTML-Bibliothek (based on SelfHTML) */
2+
3+
var DHTML = false, DOM = false, MSIE4 = false, NS4 = false, OP = false;
4+
5+
if (document.getElementById) {
6+
DHTML = true;
7+
DOM = true;
8+
} else {
9+
if (document.all) {
10+
DHTML = true;
11+
MSIE4 = true;
12+
} else {
13+
if (document.layers) {
14+
DHTML = true;
15+
NS4 = true;
16+
}
17+
}
18+
}
19+
if (window.opera) {
20+
OP = true;
21+
}
22+
23+
function getElement (Mode, Identifier, ElementNumber) {
24+
var Element, ElementList;
25+
if (DOM) {
26+
if (Mode.toLowerCase() == "id") {
27+
Element = document.getElementById(Identifier);
28+
if (!Element) {
29+
Element = false;
30+
}
31+
return Element;
32+
}
33+
if (Mode.toLowerCase() == "name") {
34+
ElementList = document.getElementsByName(Identifier);
35+
Element = ElementList[ElementNumber];
36+
if (!Element) {
37+
Element = false;
38+
}
39+
return Element;
40+
}
41+
if (Mode.toLowerCase() == "tagname") {
42+
ElementList = document.getElementsByTagName(Identifier);
43+
Element = ElementList[ElementNumber];
44+
if (!Element) {
45+
Element = false;
46+
}
47+
return Element;
48+
}
49+
return false;
50+
}
51+
if (MSIE4) {
52+
if (Mode.toLowerCase() == "id" || Mode.toLowerCase() == "name") {
53+
Element = document.all(Identifier);
54+
if (!Element) {
55+
Element = false;
56+
}
57+
return Element;
58+
}
59+
if (Mode.toLowerCase() == "tagname") {
60+
ElementList = document.all.tags(Identifier);
61+
Element = ElementList[ElementNumber];
62+
if (!Element) {
63+
Element = false;
64+
}
65+
return Element;
66+
}
67+
return false;
68+
}
69+
if (NS4) {
70+
if (Mode.toLowerCase() == "id" || Mode.toLowerCase() == "name") {
71+
Element = document[Identifier];
72+
if (!Element) {
73+
Element = document.anchors[Identifier];
74+
}
75+
if (!Element) {
76+
Element = false;
77+
}
78+
return Element;
79+
}
80+
if (Mode.toLowerCase() == "layerindex") {
81+
Element = document.layers[Identifier];
82+
if (!Element) {
83+
Element = false;
84+
}
85+
return Element;
86+
}
87+
return false;
88+
}
89+
return false;
90+
}
91+
92+
function getAttribute (Mode, Identifier, ElementNumber, AttributeName) {
93+
var Attribute;
94+
var Element = getElement(Mode, Identifier, ElementNumber);
95+
if (!Element) {
96+
return false;
97+
}
98+
if (DOM || MSIE4) {
99+
Attribute = Element.getAttribute(AttributeName);
100+
return Attribute;
101+
}
102+
if (NS4) {
103+
Attribute = Element[AttributeName]
104+
if (!Attribute) {
105+
Attribute = false;
106+
}
107+
return Attribute;
108+
}
109+
return false;
110+
}
111+
112+
function getContent (Mode, Identifier, ElementNumber) {
113+
var Content;
114+
var Element = getElement(Mode, Identifier, ElementNumber);
115+
if (!Element) {
116+
return false;
117+
}
118+
if (DOM && Element.firstChild) {
119+
if (Element.firstChild.nodeType == 3) {
120+
Content = Element.firstChild.nodeValue;
121+
} else {
122+
Content = "";
123+
}
124+
return Content;
125+
}
126+
if (MSIE4) {
127+
Content = Element.innerText;
128+
return Content;
129+
}
130+
return false;
131+
}
132+
133+
function getCheck (Mode, Identifier, ElementNumber) {
134+
var Check;
135+
var Element = getElement(Mode, Identifier, ElementNumber);
136+
if (!Element) {
137+
return false;
138+
}
139+
if (DOM) {
140+
Check = Element.checked;
141+
return Check;
142+
}
143+
if (MSIE4) {
144+
Check = Element.checked;
145+
return Check;
146+
}
147+
return false;
148+
}
149+
150+
function setCheck (Mode, Identifier, ElementNumber) {
151+
var Element = getElement(Mode, Identifier, ElementNumber);
152+
if (!Element) {
153+
return false;
154+
}
155+
if (DOM) {
156+
Element.checked = true;
157+
return true;
158+
}
159+
if (MSIE4) {
160+
Element.checked = true;
161+
return true;
162+
}
163+
if (NS4) {
164+
Element.document.open();
165+
Element.document.write(true);
166+
Element.document.close();
167+
return true;
168+
}
169+
}
170+
171+
function clearCheck (Mode, Identifier, ElementNumber) {
172+
var Element = getElement(Mode, Identifier, ElementNumber);
173+
if (!Element) {
174+
return false;
175+
}
176+
if (DOM) {
177+
Element.checked = false;
178+
return true;
179+
}
180+
if (MSIE4) {
181+
Element.checked = false;
182+
return true;
183+
}
184+
if (NS4) {
185+
Element.document.open();
186+
Element.document.write(false);
187+
Element.document.close();
188+
return true;
189+
}
190+
}
191+
192+
function setContent (Mode, Identifier, ElementNumber, Text) {
193+
var Element = getElement(Mode, Identifier, ElementNumber);
194+
if (!Element) {
195+
return false;
196+
}
197+
if (DOM && Element.firstChild) {
198+
Element.firstChild.nodeValue = Text;
199+
return true;
200+
}
201+
if (MSIE4) {
202+
Element.innerText = Text;
203+
return true;
204+
}
205+
if (NS4) {
206+
Element.document.open();
207+
Element.document.write(Text);
208+
Element.document.close();
209+
return true;
210+
}
211+
}
212+
213+
function setAttribute (Mode, Identifier, ElementNumber, AttributeName, AttributeWert) {
214+
var Element = getElement(Mode, Identifier, ElementNumber);
215+
if (!Element) {
216+
return false;
217+
}
218+
if (DOM || MSIE4) {
219+
Element.setAttribute(AttributeName, AttributeWert);
220+
return true;
221+
}
222+
// if (NS4) {
223+
// Attribute = Element[AttributeName]
224+
// if (!Attribute) {
225+
// Attribute = false;
226+
// }
227+
// return true;
228+
// }
229+
return false;
230+
}

favicon.ico

605 Bytes
Binary file not shown.

id3tool.jpg

64.3 KB
Loading

localhost8888-AB.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
konsole --nofork -e php -S localhost:8888 &
3+
firefox http://localhost:8888/mid3TagMp3AudioBook.php
4+
exit 0

localhost8888-ABP1.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
konsole --nofork -e php -S localhost:8888 &
3+
firefox http://localhost:8888/mid3TagMp3AudioBookP1.php
4+
exit 0

localhost8888-ABP1L.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
konsole --nofork -e php -S localhost:8888 &
3+
firefox http://localhost:8888/mid3TagMp3AudioBookP1L.php
4+
exit 0

localhost8888-Music.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
konsole --nofork -e php -S localhost:8888 &
3+
firefox http://localhost:8888/mid3TagMp3Music.php
4+
exit 0

localhost8888-Transfer.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
konsole --nofork -e php -S localhost:8888 &
3+
firefox http://localhost:8888/mid3TagMp3Transfer.php
4+
exit 0

0 commit comments

Comments
 (0)