Compare commits
No commits in common. "f8e1012f3ed759e580b1461548acb357b6d3616f" and "a3c5b350fc09b4a1c43771b35ec1d61005f2760f" have entirely different histories.
f8e1012f3e
...
a3c5b350fc
@ -1,19 +1,3 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2025 Fedir Kovalov.
|
|
||||||
#
|
|
||||||
# This program 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, version 3.
|
|
||||||
#
|
|
||||||
# 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/>.
|
|
||||||
#
|
|
||||||
|
|
||||||
import shadowtube.preprocess as prep
|
import shadowtube.preprocess as prep
|
||||||
import shadowtube.recommend as rec
|
import shadowtube.recommend as rec
|
||||||
|
|
||||||
|
@ -1,19 +1,3 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2025 Fedir Kovalov.
|
|
||||||
#
|
|
||||||
# This program 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, version 3.
|
|
||||||
#
|
|
||||||
# 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/>.
|
|
||||||
#
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from PIL import Image, ImageTk
|
from PIL import Image, ImageTk
|
||||||
|
@ -1,18 +1,2 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2025 Fedir Kovalov.
|
|
||||||
#
|
|
||||||
# This program 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, version 3.
|
|
||||||
#
|
|
||||||
# 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/>.
|
|
||||||
#
|
|
||||||
|
|
||||||
from .preprocess import *
|
from .preprocess import *
|
||||||
from .recommend import *
|
from .recommend import *
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
class History: #Abstract class
|
|
||||||
def __init__(self, filename):
|
|
||||||
self.history = list()
|
|
||||||
|
|
||||||
def __size__(self):
|
|
||||||
return len(history)
|
|
||||||
|
|
||||||
def parse_history(self, filename):
|
|
||||||
return history
|
|
||||||
|
|
||||||
def is_this_type(self, filename): # bool function,
|
|
||||||
return false # returns false if Youtube history
|
|
||||||
|
|
||||||
def get_video(self, index):
|
|
||||||
return history[index]
|
|
||||||
|
|
||||||
def __iter__(self):
|
|
||||||
return iter(history)
|
|
@ -1,19 +1,3 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2025 Fedir Kovalov.
|
|
||||||
#
|
|
||||||
# This program 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, version 3.
|
|
||||||
#
|
|
||||||
# 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/>.
|
|
||||||
#
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import math
|
import math
|
||||||
from typing import List
|
from typing import List
|
||||||
|
@ -1,19 +1,3 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2025 Fedir Kovalov.
|
|
||||||
#
|
|
||||||
# This program 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, version 3.
|
|
||||||
#
|
|
||||||
# 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/>.
|
|
||||||
#
|
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
from random import sample
|
from random import sample
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user