playlist_service #2

Merged
zoli merged 13 commits from playlist_service into main 2026-03-11 18:25:42 +01:00
Collaborator
No description provided.
zoli added 3 commits 2026-02-18 06:41:35 +01:00
Added findByStatus, any entry with NEW status in the db will have their url returned.
Currently to add entries to the database POSTMAN or other apps need to be used.
zoli reviewed 2026-02-20 21:39:41 +01:00
@@ -23,3 +20,3 @@
@Data
private class Response {
private static class Response {
Author
Collaborator

Move this to a new File

dto package-be SaveNewVideoResponse.java

Move this to a new File dto package-be SaveNewVideoResponse.java
@@ -12,1 +23,4 @@
@Autowired
private VideoRepository videoRepository;
@PostConstruct
Author
Collaborator

Hozz letre egy YtDlpService-t a VideoService mintajara es oda keruljon at a validateVideos() methodus.

Es nevezd at downloadNewVideos-ra

Hozz letre egy YtDlpService-t a VideoService mintajara es oda keruljon at a validateVideos() methodus. Es nevezd at downloadNewVideos-ra
@@ -15,0 +27,4 @@
public void validateVideos() throws HttpClientErrorException, IOException, InterruptedException {
List<Video> response = videoRepository.findUrlByStatus(StatusEnum.NEW);
for(Video video : response) {
if(video.getStatus().equals(StatusEnum.NEW)){
Author
Collaborator

Az adatbazisbol mar csak azokat a videokat akarjuk lekerdezni ahol a status new szoval itt folosleges megegyszer ellenorizni.

Amennyiben olyan videokat is vissza ad amiben a status nem new, ott akkor a lekerdezesd kell javitani nem pedig ujra ellenorizni.

Valszeg findByStatus(StatusEnum.NEW) az mukodik, a findUrlByStatus ugy hangzik mint ha a tablabol csak az URL oszlopot akarnad lekerdezni, de az egesz videot kered vissza. Szoval itt felre vezeto a methodus elnevezese es nem is biztos hogy azt csinalja amit kene.

Az adatbazisbol mar csak azokat a videokat akarjuk lekerdezni ahol a status new szoval itt folosleges megegyszer ellenorizni. Amennyiben olyan videokat is vissza ad amiben a status nem new, ott akkor a lekerdezesd kell javitani nem pedig ujra ellenorizni. Valszeg findByStatus(StatusEnum.NEW) az mukodik, a findUrlByStatus ugy hangzik mint ha a tablabol csak az URL oszlopot akarnad lekerdezni, de az egesz videot kered vissza. Szoval itt felre vezeto a methodus elnevezese es nem is biztos hogy azt csinalja amit kene.
istvan added 1 commit 2026-02-21 14:40:41 +01:00
istvan added 1 commit 2026-02-21 17:43:40 +01:00
istvan added 1 commit 2026-02-21 19:51:56 +01:00
istvan added 1 commit 2026-02-22 18:41:19 +01:00
- Removed PostConstruct from services
- Extended Video with MANYTOONE Playlist
- Extended Video with ONETOONE creator
- Extended Playlist with MANYTOMANY with videos
- Created Creator
- Extended Creator with OneToMany to videos
- VideoController now listens to POST on /fire, expects RequestBody input:true
istvan added 1 commit 2026-02-24 17:40:10 +01:00
istvan added 1 commit 2026-03-06 10:26:01 +01:00
istvan added 1 commit 2026-03-06 11:36:17 +01:00
istvan added 1 commit 2026-03-06 14:13:56 +01:00
istvan added 1 commit 2026-03-08 18:20:36 +01:00
- Added SQL constraints added to respective tables see list below:
-- video_playlist: video_id playlist_id
-- Foreign keys reference originals, on delete cascade on both
- Added Java JPA Entity column name mapping to snake_case instead of using base Java camelCase
zoli added 1 commit 2026-03-11 17:50:39 +01:00
zoli merged commit 400490e6a1 into main 2026-03-11 18:25:42 +01:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: istvan/video_downloader_real#2