Skip to content

Commit c4036e2

Browse files
committed
V3.0.8
1 parent 6c532df commit c4036e2

17 files changed

+140
-78
lines changed

Build/MISSTbuild.iss

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Setup]
22
AppName=MISST
3-
AppVersion=3.0.7
3+
AppVersion=3.0.8
44
AppPublisher=@Frikallo
55
AppPublisherURL=https://github.com/Frikallo/MISST
66
AppSupportURL=https://github.com/Frikallo/MISST
@@ -181,7 +181,7 @@ begin
181181
begin
182182
// Prompt the user to select the version of the program
183183
ProgramVersion := '';
184-
if MsgBox('Do you want to download the CUDA version of MISST 3.0.7?', mbConfirmation, MB_YESNO) = IDYES then
184+
if MsgBox('Do you want to download the CUDA version of MISST 3.0.8?', mbConfirmation, MB_YESNO) = IDYES then
185185
begin
186186
ProgramVersion := 'cuda';
187187
end
@@ -193,12 +193,12 @@ begin
193193
// Set the download URL and filename based on the selected version
194194
if ProgramVersion = 'cuda' then
195195
begin
196-
DownloadURL := 'https://github.com/Frikallo/MISST/releases/download/V3.0.7/MISST_CUDA_3.0.7_Release_Win.7z';
196+
DownloadURL := 'https://github.com/Frikallo/MISST/releases/download/V3.0.8/MISST_CUDA_3.0.8_Release_Win.7z';
197197
DownloadFileName := 'MISST.7z';
198198
end
199199
else
200200
begin
201-
DownloadURL := 'https://github.com/Frikallo/MISST/releases/download/V3.0.7/MISST_CPU_3.0.7_Release_Win.7z';
201+
DownloadURL := 'https://github.com/Frikallo/MISST/releases/download/V3.0.8/MISST_CPU_3.0.8_Release_Win.7z';
202202
DownloadFileName := 'MISST.7z';
203203
end;
204204

MISST/Assets/Player/loop-light.png

447 Bytes
Loading
607 Bytes
Loading
373 Bytes
Loading
572 Bytes
Loading
514 Bytes
Loading
409 Bytes
Loading
385 Bytes
Loading

MISST/Assets/Sources/AppleMusic.png

1.75 KB
Loading

MISST/Assets/Sources/Deezer.png

-1.28 KB
Binary file not shown.

MISST/Assets/UIAssets/code-light.png

505 Bytes
Loading
566 Bytes
Loading
699 Bytes
Loading

MISST/MISSTapp.py

+115-73
Large diffs are not rendered by default.

MISST/MISSThelpers.py

+17
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import threading
1717
import ctypes
1818
import requests
19+
import music_tag
1920

2021
class MISSTconsole():
2122
def __init__(self, terminal, ogText):
@@ -91,6 +92,22 @@ def update_rpc(
9192
return
9293
return
9394

95+
def apple_music(url, outdir):
96+
host = 'https://api.fabdl.com'
97+
info = requests.get(host + '/apple-music/get?url=', params={'url': url}).json()['result']
98+
convert_task = requests.get(host + f'/apple-music/mp3-convert-task/{info["gid"]}/{info["id"]}')
99+
tid = convert_task.json()['result']['tid']
100+
convert_task = requests.get(host + f'/apple-music/mp3-convert-progress/{tid}')
101+
r = requests.get(host + convert_task.json()['result']['download_url'])
102+
with open(f"{outdir}/{info['artists'] + ' - ' + info['name']}.mp3", 'wb') as f:
103+
f.write(r.content)
104+
try:
105+
audiofile = music_tag.load_file(f"{outdir}/{info['artists'] + ' - ' + info['name']}.mp3")
106+
audiofile['artwork'] = requests.get(info['image']).content
107+
audiofile.save()
108+
except:
109+
pass
110+
94111
def change_theme(theme):
95112
customtkinter.set_appearance_mode(theme)
96113

MISST/MISSTplayer.py

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def get_data(self, stream_index):
5454
pass
5555
return data
5656

57+
def get_position(self, stream_index):
58+
return self.positions[stream_index] / float(self.frame_rate)
59+
5760
def adjust_volume(self, data, volume):
5861
data = bytearray(data)
5962
for i in range(0, len(data), 2):

MISST/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.0.7'
1+
__version__ = '3.0.8'

0 commit comments

Comments
 (0)