home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Submit: Movie Info Grabbers
[Russian] kinopoisk.ru
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ajs" data-source="post: 1170341" data-attributes="member: 68833"><p>Глянул в исходники МП, он заменяет все точки и подчеркивания на пробел, т.е. их можно с правил вычеркивать <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>[code=csharp] Regex rx = new Regex(vdbParserStr[0], RegexOptions.IgnoreCase);</p><p> strUrl = rx.Replace(strUrl, "");</p><p> strUrl = strUrl.Replace(".", " ");</p><p> strUrl = strUrl.Replace("_", " ").Trim();</p><p> return strUrl;[/code]</p><p>Обновил скрипт, проверил, залил на ГитХаб, ваши правила при этом будут примерно такие:</p><p>[CODE=XML] <strip>[\(\[]?(240|360|480|720|1080|1280|2160)(p|i)?[\(\]]?</strip></p><p> <strip>rus|ukr|eng|(hard|soft)?sub</strip></p><p> <strip>(h|x)26(3|4|5)</strip></p><p> <strip>VC-?1</strip></p><p> <strip>-?AVC</strip></p><p> <strip>-?AC(3|C)</strip></p><p> <strip>(Xvid|DivX)</strip></p><p> <strip>X?VCD</strip></p><p> <strip>Tele(cine|sync)</strip></p><p> <strip>BluRay</strip></p><p> <strip>HD(TS|TV)</strip></p><p> <strip>(DVD|VHS)Scr(eener)?</strip></p><p> <strip>DVD(-?(5|9))</strip></p><p> <strip>(Super|HQ\s?)DVD</strip></p><p> <strip>(((i|n)?VOD|CAM|SAT|DS|VHS|(PD)?TV|IPTV|DVB(-T\s?)?|DT(heater)?|L(aser)?D(isc)?|WEB|BD|B(lu)?R(ay)?|HD(TV)?|(HD-?)?DVD)-?((DL-?)?Rip|DL|Remux))</strip></p><p> <strip>[\(\[]?(S?CAM|(Super-?)?TS|TC|SCR|R5|WP)[\)\]]?</strip></p><p> <strip>[\(\[]?(((A|S|1|2|D|M)VO)|((D|S)UB))[\)\]]?</strip></p><p> <strip>(\d{3,4}MB)</strip></p><p> <strip>^$|(\s\d\s\d{2}$)</strip></p><p> <strip>[\(\[]?(Extended|Theatrical|Director's.cut|Unrated)[\)\]]?</strip></p><p> <strip>[\[\(]?(((ru-?)?(t(racke|o)r(rent)?)\s([a-z]{2,3})(?![a-z]))|((HD|nnm|IRON)-?Club|HELLYWOOD|iTunes))[\]\)]?</strip></p><p> <strip>by\s[^\s]+?$</strip></p><p> <strip>\[[a-z]+?\]</strip></p><p> <strip>^$|\[|\]</strip></p><p> <strip>^$|-\s</strip></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="ajs, post: 1170341, member: 68833"] Глянул в исходники МП, он заменяет все точки и подчеркивания на пробел, т.е. их можно с правил вычеркивать :) [code=csharp] Regex rx = new Regex(vdbParserStr[0], RegexOptions.IgnoreCase); strUrl = rx.Replace(strUrl, ""); strUrl = strUrl.Replace(".", " "); strUrl = strUrl.Replace("_", " ").Trim(); return strUrl;[/code] Обновил скрипт, проверил, залил на ГитХаб, ваши правила при этом будут примерно такие: [CODE=XML] <strip>[\(\[]?(240|360|480|720|1080|1280|2160)(p|i)?[\(\]]?</strip> <strip>rus|ukr|eng|(hard|soft)?sub</strip> <strip>(h|x)26(3|4|5)</strip> <strip>VC-?1</strip> <strip>-?AVC</strip> <strip>-?AC(3|C)</strip> <strip>(Xvid|DivX)</strip> <strip>X?VCD</strip> <strip>Tele(cine|sync)</strip> <strip>BluRay</strip> <strip>HD(TS|TV)</strip> <strip>(DVD|VHS)Scr(eener)?</strip> <strip>DVD(-?(5|9))</strip> <strip>(Super|HQ\s?)DVD</strip> <strip>(((i|n)?VOD|CAM|SAT|DS|VHS|(PD)?TV|IPTV|DVB(-T\s?)?|DT(heater)?|L(aser)?D(isc)?|WEB|BD|B(lu)?R(ay)?|HD(TV)?|(HD-?)?DVD)-?((DL-?)?Rip|DL|Remux))</strip> <strip>[\(\[]?(S?CAM|(Super-?)?TS|TC|SCR|R5|WP)[\)\]]?</strip> <strip>[\(\[]?(((A|S|1|2|D|M)VO)|((D|S)UB))[\)\]]?</strip> <strip>(\d{3,4}MB)</strip> <strip>^$|(\s\d\s\d{2}$)</strip> <strip>[\(\[]?(Extended|Theatrical|Director's.cut|Unrated)[\)\]]?</strip> <strip>[\[\(]?(((ru-?)?(t(racke|o)r(rent)?)\s([a-z]{2,3})(?![a-z]))|((HD|nnm|IRON)-?Club|HELLYWOOD|iTunes))[\]\)]?</strip> <strip>by\s[^\s]+?$</strip> <strip>\[[a-z]+?\]</strip> <strip>^$|\[|\]</strip> <strip>^$|-\s</strip> [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Submit: Movie Info Grabbers
[Russian] kinopoisk.ru
Contact us
RSS
Top
Bottom