Skip to content

Commit

Permalink
Use rss-for-mikan.
Browse files Browse the repository at this point in the history
  • Loading branch information
RinChanNOWWW committed Jan 22, 2024
1 parent a3c283f commit c188047
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
9 changes: 5 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ daemonize = "0.5.0"
futures = "0.3.28"
log = "0.4"
reqwest = { version = "0.11", features = ["json"] }
rss = { version = "2.0" }
rss-for-mikan = { version = "2.0.4-mikan" }
sensible-env-logger = { version = "0.3", features = ["local-time"] }
serde = { version = "1.0.145", features = ["derive"] }
serfig = "0.0.2"
tokio = { version = "1.28.0", features = ["rt-multi-thread", "macros"] }

[patch.crates-io]
rss = { git = "https://github.com/RinChanNOWWW/rss", branch = "patch-mikan" }
2 changes: 1 addition & 1 deletion src/source/byrbt/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub struct Byrbt;

impl Byrbt {
pub fn parse_items<R: BufRead>(content: R) -> Result<Vec<Item>> {
let channel = rss::Channel::read_from(content)?;
let channel = rss_for_mikan::Channel::read_from(content)?;

Ok(channel
.items
Expand Down
2 changes: 1 addition & 1 deletion src/source/mikan/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub struct Mikan;

impl Mikan {
pub fn parse_items<R: BufRead>(content: R) -> Result<Vec<Item>> {
let channel = rss::Channel::read_from(content)?;
let channel = rss_for_mikan::Channel::read_from(content)?;

Ok(channel
.items
Expand Down
2 changes: 1 addition & 1 deletion src/source/tjupt/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub struct Tjupt;

impl Tjupt {
pub fn parse_items<R: BufRead>(content: R) -> Result<Vec<Item>> {
let channel = rss::Channel::read_from(content)?;
let channel = rss_for_mikan::Channel::read_from(content)?;

Ok(channel
.items
Expand Down

0 comments on commit c188047

Please sign in to comment.