Class ApiService
- java.lang.Object
-
- com.karafra.bitchutedl.platforms.bitchute.api.ApiService
-
-
Constructor Summary
Constructors Constructor Description ApiService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>downloadVideo(DownloadVideoRequest req)Logic for downloading video from link.org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>downloadVideo(String id)Logic for downloading videos.ParsedLinkResponsegetTarget(String link)Extracts link to bitchute video from link.ParsedLinkResponsegetTargetFromId(String id)Parses link to bitchute video from id of video.org.springframework.web.servlet.ModelAndViewviewVideoById(String id)Logic for viewing videos on this website.
-
-
-
Method Detail
-
getTarget
public ParsedLinkResponse getTarget(String link)
Extracts link to bitchute video from link.- Parameters:
link- link to extract raw video form.- Returns:
- response containing both original and raw link.
- Since:
- 1.0
-
getTargetFromId
public ParsedLinkResponse getTargetFromId(String id)
Parses link to bitchute video from id of video.- Parameters:
id- of video to extract raw link from.- Returns:
- response containing both original and raw link.
- Since:
- 1.0
-
viewVideoById
public org.springframework.web.servlet.ModelAndView viewVideoById(String id)
Logic for viewing videos on this website.- Parameters:
id- id of video.- Returns:
- view and model of website for viewing videos,
- Since:
- 1.0
-
downloadVideo
public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> downloadVideo(String id)
Logic for downloading videos.- Parameters:
id- identifier of video.- Returns:
- downloadable resource.
- Since:
- 1.0
-
downloadVideo
public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> downloadVideo(DownloadVideoRequest req)
Logic for downloading video from link.- Parameters:
req- request containing url to download from.- Returns:
- downloadable resource.
- Since:
- 1.0
-
-