Compare commits
	
		
			6 Commits
		
	
	
		
			a3c5b350fc
			...
			f8e1012f3e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| f8e1012f3e | |||
| 0dc358d053 | |||
| 
						 | 
					7abf7a939f | ||
| 
						 | 
					172b29e56a | ||
| bdcaf3747b | |||
| 8f802ed046 | 
@@ -1,3 +1,19 @@
 | 
			
		||||
#
 | 
			
		||||
# 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.recommend as rec
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,19 @@
 | 
			
		||||
#
 | 
			
		||||
# 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
 | 
			
		||||
from io import BytesIO
 | 
			
		||||
from PIL import Image, ImageTk
 | 
			
		||||
 
 | 
			
		||||
@@ -1,2 +1,18 @@
 | 
			
		||||
#
 | 
			
		||||
# 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 .recommend import *
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										18
									
								
								shadowtube/history.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								shadowtube/history.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
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,3 +1,19 @@
 | 
			
		||||
#
 | 
			
		||||
# 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 math
 | 
			
		||||
from typing import List
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,19 @@
 | 
			
		||||
#
 | 
			
		||||
# 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
 | 
			
		||||
from random import sample
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user