mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Removed deprecated functions
This commit is contained in:
parent
674b0e0de3
commit
21619fe333
3 changed files with 3 additions and 21 deletions
|
|
@ -325,14 +325,6 @@ func (c *Crunchyroll) FindEpisodeByName(seriesName, episodeTitle string) ([]*Epi
|
|||
return matchingEpisodes, nil
|
||||
}
|
||||
|
||||
// MatchEpisode tries to extract the crunchyroll series name and title out of the given url
|
||||
//
|
||||
// Deprecated: Use ParseEpisodeURL instead
|
||||
func MatchEpisode(url string) (seriesName, title string, ok bool) {
|
||||
seriesName, title, _, _, ok = ParseEpisodeURL(url)
|
||||
return
|
||||
}
|
||||
|
||||
// ParseVideoURL tries to extract the crunchyroll series / movie name out of the given url
|
||||
func ParseVideoURL(url string) (seriesName string, ok bool) {
|
||||
pattern := regexp.MustCompile(`(?m)^https?://(www\.)?crunchyroll\.com(/\w{2}(-\w{2})?)?/(?P<series>[^/]+)/?$`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue