Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FanzaResolverに機能・テストを追加 #284

Merged
merged 5 commits into from
Sep 12, 2019

Conversation

eai04191
Copy link
Member

@eai04191 eai04191 commented Sep 12, 2019

テストを書くだけのつもりで始めると、いつも原型がなくなっている気がします。

動画、同人、電子書籍、PCゲームの商品ページにてタグ取得やらに対応します。

タグの取る敷居がだいぶ低い(取れるものは何でも取ってしまっている)ので、これはいらないだろうというのがあればコメントをください。

あとスペースを_に置換していますが、Tissueの方針としてこれでいいのか謎なので教えて下さい。多分前例がない?

ref #42

動画、同人、電子書籍、PCゲームにてタグ取得に対応
@codecov
Copy link

codecov bot commented Sep 12, 2019

Codecov Report

Merging #284 into develop will increase coverage by 3.34%.
The diff coverage is 100%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #284      +/-   ##
=============================================
+ Coverage      30.01%   33.36%   +3.34%     
- Complexity       289      296       +7     
=============================================
  Files             60       60              
  Lines           1086     1127      +41     
=============================================
+ Hits             326      376      +50     
+ Misses           760      751       -9
Impacted Files Coverage Δ Complexity Δ
app/MetadataResolver/FanzaResolver.php 100% <100%> (+100%) 9 <3> (+7) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92847fe...7a56072. Read the comment docs.

@shibafu528
Copy link
Member

タグの内容

Mastodonでも書いたんですが、とりあえずは ---- が気になったくらいです。

タグにおけるスペースの扱い

_ で大丈夫です。ニコ厨(死語)なのでタグでスペースを_に置換しているのに親しみがある。

@eai04191
Copy link
Member Author

----が含まれないようにしました。快楽天で言うと下の方の.m-boxDetailProductInfoの中にある紙書籍販売日掲載誌/レーベルddにあたるところでしたので、aのみ抽出するようにしました。

.m-boxDetailProductInfoMainList__description__list__itemの方はシリーズがaになっていないことがあるので現状そのままです。いまのところシリーズ名が意味のない文字になっていることは確認されていません。

@shibafu528 shibafu528 merged commit bf1c4e7 into shikorism:develop Sep 12, 2019
@eai04191 eai04191 deleted the feature/resolver-fanza-improve branch September 12, 2019 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants